w6678w / xbmc-adult

Automatically exported from code.google.com/p/xbmc-adult
0 stars 0 forks source link

[fix] Support for xtube in fantasti.cc #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following code block adds support for xtube in fantasti.cc

1. Substitute this line:
'tube8', 'xhamster', 'xvideos', 'you_porn']

with this line:

'tube8', 'xhamster', 'xtube', 'xvideos', 'you_porn']

2. Add this to the corresponding block of default.py

 elif 'xtube' in url:
     match = re.compile('(http://www.xtube.com/.+?)"').findall(html)
     html = get_html(match[0])
     match = re.compile('videoMp4 = "(.+?)"').findall(html)
     for each in match:
         fetchurl = each.replace('\\', '')
     print 'fetchurl: %s' % fetchurl
     return fetchurl

Original issue reported on code.google.com by leonmar...@gmail.com on 20 Aug 2013 at 9:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r278.

Original comment by mrdougqu...@gmail.com on 10 Oct 2013 at 11:41