aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/photobucket.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:46:46 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:46:46 +0200
commit6f5ac90cf314e8e1a7c5c416fb51e3a7b8483e9c (patch)
tree5858b022ee180d96bbb57ca5c2fb827222c83f8d /youtube_dl/extractor/photobucket.py
parentddbd9035764678fbd698a8e5358a8cfbdfe0dfe9 (diff)
downloadyoutube-dl-6f5ac90cf314e8e1a7c5c416fb51e3a7b8483e9c.tar.xz
Move tests to the IE definitions
Diffstat (limited to 'youtube_dl/extractor/photobucket.py')
-rw-r--r--youtube_dl/extractor/photobucket.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/youtube_dl/extractor/photobucket.py b/youtube_dl/extractor/photobucket.py
index cd7fe6f52..305b79773 100644
--- a/youtube_dl/extractor/photobucket.py
+++ b/youtube_dl/extractor/photobucket.py
@@ -16,6 +16,16 @@ class PhotobucketIE(InfoExtractor):
# Check if it's necessary to keep the old extracion process
_VALID_URL = r'(?:http://)?(?:[a-z0-9]+\.)?photobucket\.com/.*(([\?\&]current=)|_)(?P<id>.*)\.(?P<ext>(flv)|(mp4))'
IE_NAME = u'photobucket'
+ _TEST = {
+ u'url': u'http://media.photobucket.com/user/rachaneronas/media/TiredofLinkBuildingTryBacklinkMyDomaincom_zpsc0c3b9fa.mp4.html?filters[term]=search&filters[primary]=videos&filters[secondary]=images&sort=1&o=0',
+ u'file': u'zpsc0c3b9fa.mp4',
+ u'md5': u'7dabfb92b0a31f6c16cebc0f8e60ff99',
+ u'info_dict': {
+ u"upload_date": u"20130504",
+ u"uploader": u"rachaneronas",
+ u"title": u"Tired of Link Building? Try BacklinkMyDomain.com!"
+ }
+ }
def _real_extract(self, url):
# Extract id from URL