Changeset 42563 for titan/mediathek


Ignore:
Timestamp:
Jul 28, 2018, 12:01:46 AM (16 months ago)
Author:
obi
Message:

fix vidcloud

Location:
titan/mediathek/localhoster
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/lib/common.py

    r42560 r42563  
    4242IOS_USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25'
    4343ANDROID_USER_AGENT = 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36'
     44EDGE_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134'
     45CHROME_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36'
    4446SMU_USER_AGENT = 'URLResolver for Kodi/%s' % (addon_version)
  • titan/mediathek/localhoster/vidcloud.py

    r42562 r42563  
    1616along with this program. If not, see <http://www.gnu.org/licenses/>.
    1717"""
    18 import re, urllib, json
     18import lib.common as common
     19import re
     20import sys
     21from lib.net import Net
    1922from lib import helpers
    20 import lib.common as common
    2123
    2224class VidCloudResolver(object):
     
    2426    domains = ['vidcloud.co', 'loadvid.online']
    2527    pattern = '(?://|\.)((?:vidcloud.co|loadvid.online))/(?:embed|v)/([0-9a-zA-Z]+)'
    26 
    27     def __init__(self):
    28         self.net = common.Net()
    2928
    3029    def __init__(self):
     
    5251                '''src":\s*"(?P<url>[^"]+)(?:[^}>\]]+)label":\s*"(?P<label>[^"]+)'''], generic_patterns=False)
    5352            if sources:
    54                 return helpers.pick_source(sources) + helpers.append_headers(headers)
     53                print helpers.pick_source(sources) + helpers.append_headers(headers)
    5554
    5655        raise ResolverError("Unable to locate video")
     
    5958        return 'https://vidcloud.co/player?fid=%s&page=embed' % media_id
    6059
    61 sys.stdout = VideoweedResolver()
     60sys.stdout = VidCloudResolver()
Note: See TracChangeset for help on using the changeset viewer.