1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 09:17:45 +08:00

9gag changed their domain from 9gag.tv to 9gag.com, this is the fix on VALID_URL.

This commit is contained in:
Stanny Nuytkens 2015-09-22 10:10:42 +02:00
parent c6aa838b51
commit f4ac4f7577

View File

@ -1,4 +1,4 @@
from __future__ import unicode_literals
from __future__ import unicode_literals
import re
import json
@ -9,7 +9,7 @@ from ..utils import str_to_int
class NineGagIE(InfoExtractor):
IE_NAME = '9gag'
_VALID_URL = r'''(?x)^https?://(?:www\.)?9gag\.tv/
_VALID_URL = r'''(?x)^https?://(?:www\.)?9gag\.com/tv/
(?:
v/(?P<numid>[0-9]+)|
p/(?P<id>[a-zA-Z0-9]+)/(?P<display_id>[^?#/]+)