Sfoglia il codice sorgente

[meta] Clarify the source of uppod st decryption algorithm

Remita Amine 9 anni fa
parent
commit
76dad392f5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      youtube_dl/extractor/meta.py

+ 1 - 0
youtube_dl/extractor/meta.py

@@ -42,6 +42,7 @@ class METAIE(InfoExtractor):
             r"st_html5\s*=\s*'#([^']+)'", webpage, 'uppod html5 st', default=None)
             r"st_html5\s*=\s*'#([^']+)'", webpage, 'uppod html5 st', default=None)
 
 
         if st_html5:
         if st_html5:
+            # uppod st decryption algorithm is reverse engineered from function un(s) at uppod.js
             json_str = ''
             json_str = ''
             for i in range(0, len(st_html5), 3):
             for i in range(0, len(st_html5), 3):
                 json_str += '&#x0%s;' % st_html5[i:i + 3]
                 json_str += '&#x0%s;' % st_html5[i:i + 3]