1. Vlad Svoka
  2. vk-xbmc-plugin

Commits

Vlad Svoka  committed 7807179

fixing #81. Now if Download Command contains {url} it would be replaced instead of appending url to command.

  • Participants
  • Parent commits 34a472f
  • Branches default

Comments (0)

Files changed (1)

File xbmc-vk.svoka.com/xvvideo.py

View file
  • Ignore whitespace
             __settings__.setSetting("downloadCmd", downloadCmd)
 
         url = base64.decodestring(self.params["v"])
-        os.system(downloadCmd + " " + url)
+        if '{url}' in downloadCmd:
+            os.system(downloadCmd.replace('{url}', url))
+        else:
+            os.system(downloadCmd + " " + url)
         
 
     def Do_HOME(self):