diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-22 11:26:22 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-22 11:26:22 +0100 |
commit | 41c9e0981806c955d0fc2c7312027b6caae57e8d (patch) | |
tree | fe45ffd0fc5b124a8023d66810a474aabd02772f | |
parent | update bloody mediafire, fix share-rapid file info (diff) | |
download | pyload-41c9e0981806c955d0fc2c7312027b6caae57e8d.tar.xz |
closed #462
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index f5c078471..2b3ea7ed7 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -11,7 +11,7 @@ class YoutubeCom(Hoster): __name__ = "YoutubeCom" __type__ = "hoster" __pattern__ = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=.*" - __version__ = "0.23" + __version__ = "0.24" __config__ = [("quality", "sd;hd;fullhd", "Quality Setting", "hd"), ("fmt", "int", "FMT Number 0-45", 0), (".mp4", "bool", "Allow .mp4", True), @@ -75,6 +75,10 @@ class YoutubeCom(Hoster): fmt_dict[fmt] = unquote(url) self.logDebug("Found links: %s" % fmt_dict) + for fmt in fmt_dict.keys(): + if fmt not in self.formats: + self.logDebug("FMT not supported: %s" % fmt) + del fmt_dict[fmt] allowed = lambda x: self.getConfig(self.formats[x][0]) sel = lambda x: self.formats[x][3] #select quality index |