-
Notifications
You must be signed in to change notification settings - Fork 3
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
428 changed files
with
58,604 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
import xbmc | ||
import xbmcaddon | ||
import xbmcgui | ||
#import logging | ||
|
||
def get_disks(): | ||
disks=[] | ||
script_ismount = os.path.join(xbmcaddon.Addon().getAddonInfo('path'), 'bin','acestream','mount_disk.sh') | ||
if os.path.exists(script_ismount): | ||
p = subprocess.Popen([script_ismount, '1'], stdout=subprocess.PIPE) | ||
names=p.stdout.readline().strip().split() | ||
for name in names: | ||
i=names.index(name) | ||
if (i%2 == 1): | ||
disks.append('{0} ({1})'.format(names[i-1],name)) | ||
else: | ||
disks.append('default /storage') | ||
return disks | ||
|
||
def addon(): | ||
STRINGS = xbmcaddon.Addon().getLocalizedString | ||
if sys.argv[1] == 'select_disk': | ||
dialog = xbmcgui.Dialog() | ||
while True: | ||
names=get_disks() | ||
index = dialog.select(STRINGS(32126), names) | ||
if index == -1: | ||
break | ||
disk_cache = names[index] | ||
xbmcaddon.Addon().setSetting('disk_cache', disk_cache) | ||
break | ||
|
||
if __name__ == '__main__': | ||
addon() |
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,34 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="service.system.acestreammedia" | ||
name="Ace Stream Media (LibreELEC ARM7)" | ||
version="1.0.3" | ||
provider-name="lysyi"> | ||
<requires> | ||
<import addon="xbmc.python" version="2.1.0"/> | ||
</requires> | ||
<extension point="xbmc.service" library="service.py"> | ||
<provides></provides> | ||
</extension> | ||
<extension point="xbmc.python.library" library="addon.py"> | ||
<provides></provides> | ||
</extension> | ||
<extension point="xbmc.addon.metadata"> | ||
<summary>Ace Stream Media 3.1.24.2 (LibreELEC ARM7) </summary> | ||
<description> | ||
ACE STREAM SYSTEM[CR] | ||
This is an innovative media platform of a new generation, which will take you to a new high-quality level of multimedia space on the Internet. | ||
WebUI: http://ip_box:6878/webui/app/WEBUITOKEN/server | ||
</description> | ||
<disclaimer> | ||
|
||
</disclaimer> | ||
<platform>all</platform> | ||
<news> | ||
</news> | ||
<assets> | ||
<icon>resources/icon.png</icon> | ||
<fanart>resources/fanart.png</fanart> | ||
|
||
</assets> | ||
</extension> | ||
</addon> |
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,113 @@ | ||
#!/bin/sh | ||
|
||
. /etc/profile | ||
oe_setup_addon service.system.acestreammedia | ||
|
||
PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
|
||
ACEDIR=$(readlink -f $(dirname $0)) | ||
ACECHROOT="androidfs" | ||
ACESTREAM="$ACEDIR/$ACECHROOT/storage/.ACEStream" | ||
MOUNT_STATE="$ACEDIR/disk.mount" | ||
ETC_DIR="$ACEDIR/$ACECHROOT/system/etc" | ||
DIR_MOUNT="$ACEDIR/$ACECHROOT/mount" | ||
LOG="$ACEDIR/aceaddon.log" | ||
|
||
log(){ | ||
IS_DEBUG=$is_debug | ||
[ -z $IS_DEBUG ] && IS_DEBUG="false" | ||
[ $IS_DEBUG == "true" ] && echo "$(date +"%y-%m-%d %T")|"service.system.acestreammedia"|$(basename "$0")|$@" >> $LOG | ||
} | ||
|
||
mkdir -p $ACEDIR/$ACECHROOT/system | ||
mkdir -p $ACEDIR/$ACECHROOT/dev | ||
mkdir -p $ACEDIR/$ACECHROOT/proc | ||
mkdir -p $ACEDIR/$ACECHROOT/sys | ||
mkdir -p $ACEDIR/$ACECHROOT/storage | ||
mkdir -p $ACEDIR/$ACECHROOT/storage/.ACEStream | ||
|
||
mount -o bind /dev $ACEDIR/$ACECHROOT/dev &>/dev/null | ||
mount -t proc proc $ACEDIR/$ACECHROOT/proc &>/dev/null | ||
mount -t sysfs sysfs $ACEDIR/$ACECHROOT/sys &>/dev/null | ||
|
||
DHT_TRANSMISSIONBT_COM=$dht_transmissionbt_com | ||
ROUTER_BITTORRENT_COM=$router_bittorrent_com | ||
|
||
[ -z "$DHT_TRANSMISSIONBT_COM" ] && DHT_TRANSMISSIONBT_COM="212.129.33.59" | ||
[ -z "$ROUTER_BITTORRENT_COM" ] && ROUTER_BITTORRENT_COM="67.215.246.10" | ||
|
||
log "ROUTER_BITTORRENT_COM=$ROUTER_BITTORRENT_COM" | ||
log "DHT_TRANSMISSIONBT_COM=$DHT_TRANSMISSIONBT_COM" | ||
|
||
mkdir -p $ETC_DIR | ||
if [ ! -f $ETC_DIR/hosts ]; then | ||
cp -f /run/connman/hosts $ETC_DIR/hosts | ||
echo "$DHT_TRANSMISSIONBT_COM dht.transmissionbt.com" >> $ETC_DIR/hosts | ||
echo "$ROUTER_BITTORRENT_COM router.bittorrent.com" >> $ETC_DIR/hosts | ||
fi | ||
[ ! -f $ETC_DIR/hostname ] && cp -f /proc/sys/kernel/hostname $ETC_DIR/hostname | ||
[ ! -f $ETC_DIR/resolv.conf ] && cp -f /run/connman/resolv.conf $ETC_DIR/resolv.conf | ||
|
||
VOD_CACHE_TYPE=$vod_cache_type | ||
LIVE_CACHE_TYPE=$live_cache_type | ||
DISK_CACHE=$disk_cache | ||
CACHE_TYPE="memory" | ||
|
||
[ -z "$DISK_CACHE" ] && DISK_CACHE="default" | ||
[ -z "$vod_cache_type" ] && VOD_CACHE_TYPE="memory" | ||
[ -z "$live_cache_type" ] && LIVE_CACHE_TYPE="memory" | ||
|
||
log "DISK_CACHE=$DISK_CACHE" | ||
log "VOD_CACHE_TYPE=$VOD_CACHE_TYPE" | ||
log "LIVE_CACHE_TYPE=$LIVE_CACHE_TYPE" | ||
|
||
MOUNT_DISK="/storage" | ||
NAME_DISK=$(echo $DISK_CACHE | awk '{ print $1 }') | ||
MOUNT_DISK=$(echo $DISK_CACHE | sed -e 's/.*(\(.*\)).*/\1/') | ||
|
||
log "MOUNT_DISK=$MOUNT_DISK" | ||
log "NAME_DISK=$NAME_DISK" | ||
|
||
if [ $VOD_CACHE_TYPE = "memory" -a $LIVE_CACHE_TYPE = "memory" ]; then | ||
CACHE_TYPE="memory" | ||
else | ||
CACHE_TYPE="disk" | ||
fi | ||
|
||
log "CACHE_TYPE=$CACHE_TYPE" | ||
log "IF UMOUNT: [$CACHE_TYPE = memory -o $NAME_DISK=default]" | ||
if [ $CACHE_TYPE = "memory" -o $NAME_DISK="default" ]; then | ||
if [ -f "$MOUNT_STATE" ]; then | ||
log "IF UMOUNT(there is a file disk.mount): yes" | ||
rm -f $MOUNT_STATE | ||
umount $ACEDIR/$ACECHROOT/storage &>/dev/null | ||
fi | ||
fi | ||
|
||
log "IF MOUNT EXTERNAL DISK: [ $CACHE_TYPE = disk -a $NAME_DISK != default ]" | ||
if [ $CACHE_TYPE = "disk" -a $NAME_DISK != "default" ]; then | ||
if [ "$MOUNT_DISK" != "/storage" ]; then | ||
MOUNT_TYPE=$(/bin/mount | grep "$MOUNT_DISK" | sed -e "s|^.* type ||" | awk '{ print $1 }') | ||
if [ "$MOUNT_TYPE" == "vfat" -o "$MOUNT_TYPE" == "ext4" -o "$MOUNT_TYPE" == "ext3" -o "$MOUNT_TYPE" == "ext2" ]; then | ||
log "MOUNT DISK: $MOUNT_DISK - MOUNT_TYPE=$MOUNT_TYPE" | ||
rm -fR $ACESTREAM &>/dev/null | ||
/sbin/chroot $ACEDIR/$ACECHROOT /system/bin/toolbox mount -t $MOUNT_TYPE $MOUNT_DISK /storage &>/dev/null | ||
echo "$MOUNT_DISK" > $MOUNT_STATE | ||
fi | ||
fi | ||
fi | ||
|
||
mkdir -p $ACESTREAM | ||
|
||
[ -f $ACEDIR/playerconf.pickle ] && cp -f $ACEDIR/playerconf.pickle $ACESTREAM | ||
|
||
chroot $ACEDIR/$ACECHROOT /system/bin/sh -c "cd /acestream.engine ; /system/bin/acestream.sh" > $ACEDIR/acestream.log 2>&1 - << EOF | ||
from acestreamengine import Core | ||
params = "$@".split(' ') | ||
if params == ['']: | ||
params = [] | ||
Core.run(params) | ||
EOF |
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,22 @@ | ||
#!/bin/sh | ||
|
||
ACEDIR=$(readlink -f $(dirname $0)) | ||
ACECHROOT="androidfs" | ||
MOUNT_STATE="$ACEDIR/disk.mount" | ||
|
||
pkill -9 -f "/acestream.engine/python/bin/python" &>/dev/null | ||
pkill -9 -f "/system/bin/acestream.sh" &>/dev/null | ||
|
||
if [ -f "$MOUNT_STATE" ]; then | ||
/sbin/chroot $ACEDIR/$ACECHROOT /system/bin/toolbox umount /storage &>/dev/null | ||
rm -fR $ACEDIR/$ACECHROOT/storage/.ACEStream &>/dev/null | ||
fi | ||
|
||
umount $ACEDIR/$ACECHROOT/proc &>/dev/null | ||
umount $ACEDIR/$ACECHROOT/sys &>/dev/null | ||
umount $ACEDIR/$ACECHROOT/dev &>/dev/null | ||
|
||
if [ -f "$MOUNT_STATE" ]; then | ||
rm -f $MOUNT_STATE | ||
umount $ACEDIR/$ACECHROOT/storage &>/dev/null | ||
fi |
Empty file.
11 changes: 11 additions & 0 deletions
11
bin/acestream/androidfs/acestream.engine/.ACEStream/broadcast_list.pickle
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,11 @@ | ||
(dp0 | ||
S'version' | ||
p1 | ||
I2 | ||
sS'data' | ||
p2 | ||
(dp3 | ||
S'0b824e4cf3f717766a6569a5b5d9367f16f58748' | ||
p4 | ||
(dp5 | ||
ss. |
1 change: 1 addition & 0 deletions
1
bin/acestream/androidfs/acestream.engine/.ACEStream/external_player_manager.json
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 @@ | ||
{"last_selected_player": null, "selected_player_cache": {}} |
17 changes: 17 additions & 0 deletions
17
bin/acestream/androidfs/acestream.engine/.ACEStream/playlist.pickle
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,17 @@ | ||
(dp0 | ||
S'version' | ||
p1 | ||
I3 | ||
sS'data' | ||
p2 | ||
(dp3 | ||
S'0b824e4cf3f717766a6569a5b5d9367f16f58748' | ||
p4 | ||
(dp5 | ||
S'playlist' | ||
p6 | ||
(lp7 | ||
sS'max_item_id' | ||
p8 | ||
I0 | ||
sss. |
Binary file added
BIN
+7.42 KB
bin/acestream/androidfs/acestream.engine/.ACEStream/sessconfig.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added
BIN
+114 Bytes
bin/acestream/androidfs/acestream.engine/acestreamengine/__init__.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.3 MB
bin/acestream/androidfs/acestream.engine/acestreamengine/pysegmenter.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.