]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[crunchyroll] Remove unused class
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 21 Mar 2015 11:18:33 +0000 (12:18 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 21 Mar 2015 11:18:33 +0000 (12:18 +0100)
youtube_dl/extractor/crunchyroll.py

index e64b88fbc4f796accae6816c5fcec2f2a1aa3ecd..6ded723c96ddad70ebf95b9fb6b73c811bcc6746 100644 (file)
@@ -23,7 +23,6 @@ from ..utils import (
 )
 from ..aes import (
     aes_cbc_decrypt,
-    inc,
 )
 
 
@@ -102,13 +101,6 @@ class CrunchyrollIE(InfoExtractor):
 
         key = obfuscate_key(id)
 
-        class Counter:
-            __value = iv
-
-            def next_value(self):
-                temp = self.__value
-                self.__value = inc(self.__value)
-                return temp
         decrypted_data = intlist_to_bytes(aes_cbc_decrypt(data, key, iv))
         return zlib.decompress(decrypted_data)