-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
606 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4.53 KB
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/Core.so
Binary file not shown.
Binary file modified
BIN
+97.7 KB
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/CoreApp.so
Binary file not shown.
Binary file modified
BIN
+2.06 KB
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/live.so
Binary file not shown.
Binary file modified
BIN
+56 Bytes
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/node.so
Binary file not shown.
Binary file modified
BIN
+8 KB
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/pysegmenter.so
Binary file not shown.
Binary file modified
BIN
+9.11 KB
(100%)
androidfs/system/data/data/org.acestream.engine/files/acestreamengine/streamer.so
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
androidfs/system/data/data/org.acestream.engine/files/data/plugins/facebook.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#-plugin-sig:SPqmmxqEioOfeS09AvinJJrjqKG+0bWkTFbOIOKFAw0XnyVa9j4iwtcaHT3KhdleQaWufDZrQ5C0Tw3Jjp4KPxt//MK4Oex/71zqgWmhIGeJfN0iRroTovVdcuB5QTEg3hw9ddGbmOtHbX99qkJ92AGO4PCbRuU3lQuUJemoPuf2AH6rFlYbQLTC28B/USEhV75ySlp/BpmVwJgDKfyxOvPVzHnlcdFQms/Z72qrQZAiwkkYdSKqkOz7FJi/1VhTVe/wmTkwCkK6Est3V04FOVB5gi/C1/4wKrmMqjKnTjsF36p0QA5gu40bs35eyMK0Ely4wsgSpo9H45YN283W6A== | ||
import re | ||
|
||
from ACEStream.PluginsContainer.livestreamer.plugin import Plugin | ||
from ACEStream.PluginsContainer.livestreamer.stream import HLSStream | ||
|
||
_playlist_url = "https://www.facebook.com/video/playback/playlist.m3u8?v={0}" | ||
|
||
_url_re = re.compile(r"http(s)?://(www\.)?facebook\.com/[^/]+/videos/(?P<video_id>\d+)") | ||
|
||
|
||
class Facebook(Plugin): | ||
@classmethod | ||
def can_handle_url(cls, url): | ||
return _url_re.match(url) | ||
|
||
def _get_streams(self): | ||
match = _url_re.match(self.url) | ||
video = match.group("video_id") | ||
|
||
playlist = _playlist_url.format(video) | ||
|
||
return HLSStream.parse_variant_playlist(self.session, playlist) | ||
|
||
__plugin__ = Facebook |
40 changes: 40 additions & 0 deletions
40
androidfs/system/data/data/org.acestream.engine/files/data/plugins/life_ru.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#-plugin-sig:RH03aHgiSALoPxVbSU8jVbqBS309gYLuKXjTZwi8XmJ4GEvG0fzri0XIbADu/2DovxrP0j6kpUpjFjdoz57sCFOAB+XLruY1Y/gvi+yZhQKeHRHL3MKgkhIkxhMHDignfjXY142XEMGoPKZor+lVw93OwtZ7MLt0hT4yMdr9iZ61DDUZ+Knx8urQMwSJo0kVC4v/jfJXuSAx03++evhqKoSetw1RQAgLPZc31s0q2Bg1Sf+MTFoOcTDtB8WmHMDBYtDnBztWO88Osy9D06YLFoOWtcRbpILIQzrvm3XnUC9hsKOyMXgooQyzdVonyFzOxRBNx7Chfl9yqXrldWo8gg== | ||
import re | ||
|
||
from ACEStream.PluginsContainer.livestreamer.plugin import Plugin, PluginError | ||
from ACEStream.PluginsContainer.livestreamer.plugin.api import http | ||
from ACEStream.PluginsContainer.livestreamer.stream import HTTPStream, HLSStream | ||
|
||
# https://embed.life.ru/video/dc020486e0248fd466cc4c153c92b1a1 | ||
_url_re = re.compile(r"http(s)?:\/\/(?:www\.)?(embed\.)life\.ru\/video\/(?P<id>[a-z,A-Z,0-9]+)") | ||
# "original":"https://static.life.ru/dc020486e0248fd466cc4c153c92b1a1.mp4" | ||
_direct_url = re.compile(r"\"original\":\"(?P<url>http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)\"") | ||
# User-agent to use for http requests | ||
USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36' | ||
|
||
class life_ru(Plugin): | ||
@classmethod | ||
def can_handle_url(cls, url): | ||
return _url_re.match(url) | ||
|
||
def _get_streams(self): | ||
match = _url_re.match(self.url) | ||
videoid = match.group('id') | ||
|
||
# Set header data for user-agent | ||
hdr = {'User-Agent': USER_AGENT} | ||
|
||
# Parse video ID from data received from supplied URL | ||
res = http.get(self.url, headers=hdr) | ||
|
||
if not res: | ||
return {} | ||
|
||
for match in re.findall(_direct_url, res.text): | ||
try: | ||
return {"original" : HTTPStream(self.session, match)} | ||
except Exception as e: | ||
self.logger.error("Failed to extract video url: {0}", e) | ||
|
||
return {} | ||
__plugin__ = life_ru |
47 changes: 47 additions & 0 deletions
47
androidfs/system/data/data/org.acestream.engine/files/data/plugins/ovva.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#-plugin-sig:ivQafMxeUDQ6g4K2k+E/46NCo2WdNF0EUxkciCL9f5DU3PEU/Q5az8X9VAG7LFhPQ87PSAI7iOTCOTiQWLe21M9xneeXP/FEJBN6XNZa1oJHjXbA1CHybHCnL+tdOuj8dUm1D+DmFcNEgmgUcxoHw3ZhTEkq+l4EBKCWpHVyV9jgrpjUZeUW6ZV9GwaoKVA7GmTleIXGUeW7/zCb7tsTAmNjr1DoNPoQBJuhJxDstgsXq/np/YYL8IT64yu6gyJ7p56gPZjjtBcECZrdT3beBOWud3xPHOR31brOhEFmcwimm4upkbAd6eDhZVM5g9fFx24EQQ93s/4mbJJQp/0LEg== | ||
import re | ||
import base64 | ||
import json | ||
|
||
from ACEStream.PluginsContainer.livestreamer.plugin import Plugin, PluginError | ||
from ACEStream.PluginsContainer.livestreamer.plugin.api import http | ||
from ACEStream.PluginsContainer.livestreamer.stream import HTTPStream, HLSStream | ||
|
||
# https://ovva.tv/video/embed/EuDTKiaN?logo=tsn&l=ua&autoplay=0 | ||
_url_re = re.compile(r"http(s)?:\/\/(?:www\.)?ovva\.tv\/.*embed\/(?P<id>[a-z,A-Z,0-9]+)") | ||
_player_params = re.compile(r"\$\(\'\#ovva-player\'\)\.ovva\(\'(?P<base64>.*)\'\);") | ||
# User-agent to use for http requests | ||
USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36' | ||
|
||
class ovva(Plugin): | ||
@classmethod | ||
def can_handle_url(cls, url): | ||
return _url_re.match(url) | ||
|
||
def _get_streams(self): | ||
match = _url_re.match(self.url) | ||
videoid = match.group('id') | ||
|
||
# Set header data for user-agent | ||
hdr = {'User-Agent': USER_AGENT} | ||
|
||
# Parse video ID from data received from supplied URL | ||
res = http.get(self.url, headers=hdr) | ||
|
||
if not res: | ||
return {} | ||
|
||
for match in re.findall(_player_params, res.text): | ||
try: | ||
params = json.loads(base64.b64decode(match)) | ||
video_url = params.get("url") | ||
res = http.get(video_url, headers=hdr) | ||
|
||
video_url = res.text.split('=')[1] | ||
|
||
return HLSStream.parse_variant_playlist(self.session, video_url) | ||
except Exception as e: | ||
self.logger.error("Failed to decode player params: {0}", e) | ||
|
||
return {} | ||
__plugin__ = ovva |
51 changes: 51 additions & 0 deletions
51
androidfs/system/data/data/org.acestream.engine/files/data/plugins/shakhtar.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#-plugin-sig:bgDY7DWi3fwE5GZYhj1rmVictYmEZY2qEoP/UNsTortaooXEi7gGfKaR/9zsXeWGdfpdayCa5uD+Uz+/CnZ4PcNGzqZbGnNDLOb/agvHNGrf9WduKW+84eZtT+SrnpPMLG8JHuw/rC4t62snd1oKXhXXPN7P7/uWzTR0lEtJWIYFh6RH1qM7SiDzg+u5DSZ46ptfQki1juKtYbPUWwbcG2GEBQmVq4mBaQB72/j56tt7N9bpKZ3mc7JD1sRedKxgm23SHmyy0chlo0c8oHNJgiqq+/x6BYXkovKE25X/YTwW4fpk/xp1aLl2vBPMLv1yULAPm3HKcnbzlzdeGe0Nvg== | ||
import re | ||
|
||
from ACEStream.PluginsContainer.livestreamer.plugin import Plugin, PluginError | ||
from ACEStream.PluginsContainer.livestreamer.plugin.api import http | ||
from ACEStream.PluginsContainer.livestreamer.stream import HTTPStream, HLSStream | ||
|
||
from bs4 import NavigableString, BeautifulSoup, Comment | ||
|
||
# http://video.shakhtar.com/ru/embed/v8888 | ||
_url_re = re.compile(r"http(s)?:\/\/video\.shakhtar\.com\/.*embed\/*") | ||
# User-agent to use for http requests | ||
USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36' | ||
|
||
class shakhtar(Plugin): | ||
@classmethod | ||
def can_handle_url(cls, url): | ||
return _url_re.match(url) | ||
|
||
def _get_streams(self): | ||
# Set header data for user-agent | ||
hdr = {'User-Agent': USER_AGENT} | ||
|
||
# Parse video ID from data received from supplied URL | ||
res = http.get(self.url, headers=hdr) | ||
|
||
if not res: | ||
return {} | ||
|
||
try: | ||
bs = BeautifulSoup(res.text, "html5lib") | ||
bs = bs.find('video', {'id' : "my-video"}) | ||
|
||
if not bs: | ||
return {} | ||
|
||
src = bs.find('source', {'data-quality' : "hd"}) | ||
|
||
if not src: | ||
src = bs.find('video') | ||
|
||
if not src or not src.get('src'): | ||
return {} | ||
|
||
return {"best" : HTTPStream(self.session, src.get('src'))} | ||
except Exception as e: | ||
self.logger.error("Failed to decode player params: {0}", e) | ||
|
||
return {} | ||
|
||
__plugin__ = shakhtar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.