[vlc-commits] youtube.lua: fix fetching of uploader's name

Pierre Ynard git at videolan.org
Sun Aug 7 08:56:23 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Aug  7 08:54:59 2011 +0200| [eb7ae363ce8e3de4c6ab7428edf3fe7f15a59396] | committer: Pierre Ynard

youtube.lua: fix fetching of uploader's name

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb7ae363ce8e3de4c6ab7428edf3fe7f15a59396
---

 share/lua/playlist/youtube.lua |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 8b4d6fe..be73d2c 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -76,8 +76,8 @@ function parse()
                 description = vlc.strings.resolve_xml_special_chars( description )
                 description = vlc.strings.resolve_xml_special_chars( description )
             end
-            if string.match( line, "subscribe_to_user=" ) then
-                _,_,artist = string.find( line, "subscribe_to_user=([^&]*)" )
+            if string.match( line, " rel=\"author\"" ) then
+                _,_,artist = string.find( line, "href=\"/user/([^\"]*)\"" )
             end
             -- JSON parameters, also formerly known as "swfConfig",
             -- "SWF_ARGS", "swfArgs" ...



More information about the vlc-commits mailing list