]> gitweb @ CieloNegro.org - youtube-dl.git/commit
[appletrailers] Rework extraction (fixes #1387)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 29 Sep 2013 18:49:58 +0000 (20:49 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 29 Sep 2013 18:49:58 +0000 (20:49 +0200)
commit843530568f326294d714b5b9f11bbf6176d73ccf
tree15de31ec77aa5aea0b143812e505ff126a632a21
parent138a5454b5f2af27b0b31764a8125cad23fd3429
[appletrailers] Rework extraction (fixes #1387)

The exraction was broken:
* The includes page contains img elements that need to be fixed.
* Use the 'itunes.inc' page, it contains a json dictionary for each trailer with information.
* Get the formats from 'includes/settings{trailer_name}.json'
* Use urljoin to allow urls with a fragment identifier to work

Removed the thumbnail urls from the tests, they are different now.
youtube_dl/extractor/appletrailers.py