diff options
author | Stefano <l.stickell@yahoo.it> | 2013-06-16 14:41:41 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-06-16 14:41:41 +0200 |
commit | d941665ed67b9bc1f188edef8b3ff8f923f6d337 (patch) | |
tree | 329c938947441a497295ccb3d6511124c0974cd4 | |
parent | Merge pull request #164 from stefanos/patch-2 (diff) | |
download | pyload-d941665ed67b9bc1f188edef8b3ff8f923f6d337.tar.xz |
YouTubeCom: fixed #166.
See also #163
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index e3eddf638..129b948bf 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -34,7 +34,7 @@ class YoutubeCom(Hoster): __name__ = "YoutubeCom" __type__ = "hoster" __pattern__ = r"https?://(?:[^/]*?)youtube\.com/watch.*?[?&]v=.*" - __version__ = "0.33" + __version__ = "0.34" __config__ = [("quality", "sd;hd;fullhd;240p;360p;480p;720p;1080p;3072p", "Quality Setting", "hd"), ("fmt", "int", "FMT/ITAG Number (5-102, 0 for auto)", 0), (".mp4", "bool", "Allow .mp4", True), @@ -76,7 +76,7 @@ class YoutubeCom(Hoster): def process(self, pyfile): html = self.load(pyfile.url, decode=True) - if '<h1 id="unavailable-message" class="message">' in html: + if re.search(r'<div id="player-unavailable" class="\s*player-width player-height\s*">', html): self.offline() if "We have been receiving a large volume of requests from your network." in html: |