[vlc-commits] lua: don't return pointless, wrong URL meta data

Pierre Ynard git at videolan.org
Tue Nov 1 00:02:18 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Oct 31 23:52:42 2016 +0100| [34142f6b31d8dfd2bc5632a384860e2dd1f29000] | committer: Pierre Ynard

lua: don't return pointless, wrong URL meta data

Don't return "url = vlc.path", first that's not a valid URL, then the
runtime already sets it automatically to the input URL by default.

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

 share/lua/playlist/dailymotion.lua | 2 +-
 share/lua/playlist/katsomo.lua     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index a3782f6..28bf033 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -84,5 +84,5 @@ function parse()
         return { }
     end
 
-    return { { path = path; name = name; description = description; url = vlc.path; arturl = arturl; artist = artist } }
+    return { { path = path; name = name; description = description; arturl = arturl; artist = artist } }
 end
diff --git a/share/lua/playlist/katsomo.lua b/share/lua/playlist/katsomo.lua
index 6965e4e..d3b15c6 100644
--- a/share/lua/playlist/katsomo.lua
+++ b/share/lua/playlist/katsomo.lua
@@ -61,13 +61,13 @@ function parse()
             name = vlc.strings.resolve_xml_special_chars( name )
             name = vlc.strings.from_charset( "ISO_8859-1", name )
             path = "http://www.katsomo.fi/?treeId="..treeid
-            table.insert( p, { path = path; name = name; url = vlc.path; arturl=arturl; } )
+            table.insert( p, { path = path; name = name; arturl=arturl; } )
         end
         for programid in string.gmatch( line, "<li class=\"program.*\" id=\"program(%d+)\" title=\".+\"" ) do
            description = vlc.strings.resolve_xml_special_chars( find( line, "title=\"(.+)\"" ) )
            description = vlc.strings.from_charset( "ISO_8859-1", description )
            path = "http://www.katsomo.fi/metafile.asx?p="..programid.."&bw=800"
-           table.insert( p, { path = path; name = description; url = vlc.path; arturl=arturl; } )
+           table.insert( p, { path = path; name = description; arturl=arturl; } )
         end
     end
     return p



More information about the vlc-commits mailing list