Permalink
Browse files

Fixed regexp for new MTG URLs

  • Loading branch information...
1 parent ca2786f commit 4c1ac33720676d2faccce8cf0b2dbd095d5c062e @jackuess committed Mar 13, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/pirateplay/lib/services/mtg.py
@@ -15,18 +15,18 @@
mtg_alt = { 'startvars': { 'suffix-hint': 'flv' },
'items': [TemplateRequest(
- re = r'^(http://)?(www\.)?tv[368]play\.se/.*(?:play/(?P<id>\d+)).*',
+ re = r'^(http://)?(www\.)?tv[368]play\.se/.*/(?P<id>\d+).*',
encode_vars = mtg_encode[0]),
TemplateRequest(
re = r'<SamiFile>(?P<subtitles>[^<]*).*<Video>.*<BitRate>(?P<bitrate>\d+).*?<Url><!\[CDATA\[(?P<req_url>http[^\]]+)'),
TemplateRequest(
- re = r'<Url>(?P<final_url>[^<]+)',
+ re = r'<Url><!\[CDATA\[(?P<final_url>[^\]]+)',
encode_vars = mtg_encode[1])] }
mtg_hls = { 'items': [TemplateRequest(
- re = r'(hls\+?)?(http://)?(www\.)?tv[368]play\.se/.*(?:play/(?P<id>\d+)).*',
+ re = r'(hls\+?)?(http://)?(www\.)?tv[368]play\.se/.*/(?P<id>\d+).*',
encode_vars = lambda v: { 'req_url': 'http://viastream.viasat.tv/MobileStream/%(id)s' % v } ),
TemplateRequest(
re = r'"(?P<req_url>(?P<base>.+/)[^/]+.m3u8)"',

0 comments on commit 4c1ac33

Please sign in to comment.