مشاكل وأسئلة برمجة وتطوير الاضافات والسكين وبناء الصور للانيجما

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
[email protected]
تركت
كود:
Name_M3u = "Adresse Destination/MyM3u.zip"
على حالها :oh:روح ترقد راك كوليت .... :yes:

عليك وعلى عمي google هههههه
هل يمكن استعمال قارئ مثل قارئ tsmedia في بلوجن freeserver عوض MoviePlayer
 

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
هل ينفع هذا السكريبت لتخطي هذا الرابط adfly


Bash:
// ==UserScript==
// @name         Adfly-skipper
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Automatically skip ad-fly
// @author       giuseppe-dandrea
// @match        http*://q.gs/*
// @match        http*://j.gs/*
// @match        http*://adf.ly/*
// @match        http*://queuecosm.bid/*
// @match        http*://threadsphere.bid/*
// @match        http*://restorecosm.bid/*
// @match        http*://clearload.bid/*
// @match        http*://bc.vc/*
// @match        http*://swzz.xyz/*
// @match        http*://vcrypt.net/*
// @match        http*://swiftviz.net/*
// @match        http*://4snip.pw/*
// @grant        none
// ==/UserScript==

var url = window.location.href;

if (url.indexOf("q.gs") != -1 ||
    url.indexOf("j.gs") != -1 ||
    url.indexOf("adf.ly") != -1 ||
    url.indexOf("queuecosm.bid") != -1 ||
    url.indexOf("threadsphere.bid") != -1 ||
    url.indexOf("restorecosm.bid") != -1 ||
    url.indexOf("clearload.bid") != -1 ||
    url.indexOf("swiftviz.net") != -1 ) {
    adfly_bypass();
}
else if (url.indexOf("bc.vc") != -1 ) {
    bcvc_bypass();
}
else if (url.indexOf("swzz.xyz") != -1 ) {
    swzz_bypass();
}
else if (url.indexOf("vcrypt.net") != -1 ) {
    vcrypt_bypass();
}
else if (url.indexOf("linkshrink.net") != -1 ) {
    linkshrink_bypass();
}
else if (url.indexOf("4snip.pw") != -1) {
    foursnip_bypass();
}

function adfly_bypass() {
    var href = "";
    new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
        href = $('#skip_bu2tton')[0].href;
        if (href === "") {
            adfly_bypass();
        }
        else {
            window.open(href, '_self');
        }
    });
}

function bcvc_bypass() {
    new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
        if ($('#skip_btt').size() === 1) {
            $('#skip_btt').trigger('click');
        }
        else {
            bcvc_bypass();
        }
    });
}

function swzz_bypass() {
    new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
        if ($('body > div.container > div.row > div > a').length === 1) {
            $('body > div.container > div.row > div > a').trigger('click');
        }
        else {
            swzz_bypass();
        }
    });
}

function vcrypt_bypass() {
    new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
        if ( $('body > center > center > form > input.btncontinue').length ) {
            $('body > center > center > form > input.btncontinue').trigger('click');
        }
        else if( $('body > div > div:nth-child(2) > div > div > a:nth-child(4)').length ) {
            $('body > div > div:nth-child(2) > div > div > a:nth-child(4)').trigger('click');
        }
        else if ( $('body > center > center > div > form > input.btncontinue').length ) {
            $('body > center > center > div > form > input.btncontinue').trigger('click');
        }
        else {
            vcrypt_bypass();
        }
    });
}

function linkshrink_bypass() {
    new Promise((resolve) => setTimeout(resolve, 8000)).then(() => {
        if ($('#btd').length === 1) {
            $('#btd').trigger('click');
        }
        else {
            linkshrink_bypass();
        }
    });
}

function foursnip_bypass() {
    new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
        if ($('#invisibleCaptchaShortlink').length) {
            $('#invisibleCaptchaShortlink').trigger('click');
        } else {
            foursnip_bypass();
        }
    });
}
 

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
مشكلة مع هذا الكود urlopen و request
no module


Python:
from base64 import b64decode
from urllib.request import urlopen
from sys import argv, exit

__author__ = 'D4Vinci'

def decrypt(code):
    ''' decrypt the given encrypted code '''

    zeros, ones = '', ''

    for num, letter in enumerate(code):
        if num % 2 == 0: zeros += code[num]
        else: ones = code[num] + ones

    key = zeros + ones
    key = b64decode(key.encode("utf-8"))

    return key[2:].decode('utf-8')


if __name__ == '__main__':
    ''' when script run directly '''

    try: url = argv[1]
    except: print('usage: python(3) AdflyURLGrabber.py <URL>'); exit()

    if "http" not in url: url = "http://" + url

    adfly_data = urlopen(url).read()
    ysmm = adfly_data.split(b"ysmm = '")[1].split(b"';")[0] # Find encrypted URL code in URL source

    decrypted_url = decrypt(ysmm.decode('utf-8')) # Decrypt the URL

    print(decrypted_url)
 

se_na_fo

عضو مميز
عضو قيم
إنضم
21 جانفي 2009
المشاركات
1.422
مستوى التفاعل
4.448
الحل اما ان تستعمل

كود:
from urllib2 import urlopen

او

try:
    from urllib.request import urlopen
except ImportError:
    from urllib2 import urlopen
Screenshot_1.png

الكود الدي تستخدمه قديم و لا يعمل
 
التعديل الأخير:

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
هل ينفع هذا الكود اضن انه ليس قديم

url=Free system
Python:
# -*- coding: utf-8 -*-

import base64, requests, os, re, sys
from bs4 import BeautifulSoup

def _crack(code):

        zeros = ''
        ones = ''
        for n,letter in enumerate(code):
            if n % 2 == 0:
                zeros += code[n]
            else:
                ones = code[n] + ones

        key = zeros + ones
        key = list(key)
        i = 0

        while i < len(key):
            if key[i].isdigit():
                for j in range(i+1,len(key)):
                    if key[j].isdigit():
                        u = int(key[i])^int(key[j])
                        if u < 10:
                            key[i] = str(u)
                        i = j                   
                        break
            i+=1
        
        key = ''.join(key)
        url = base64.b64decode(key)[16:-16].decode('utf-8')

        return url

def _decrypt(url):
    adfly = requests.get(url).text
    ysmm = re.findall(r"var ysmm = '(.*?)';", adfly)[0]
    decrypted_url = _crack(ysmm)

    return decrypted_url

def main():
    with open('links2.txt', 'r') as target, open('output.txt', 'w') as output:

        soup    = BeautifulSoup(target, 'html.parser')
        items   = soup.select('a')
        links   = []

        for item in items:
            url = item.get('href')
            try:
                output.write("{} \n".format(_decrypt(url)))
            except Exception as e:
                print("Ocurrió un error: {}".format(e))
        
    print("¡Finalizado! Resultados guardados en output/output.txt")

if __name__ == "__main__":
    main()
 

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
السرفير tounfite لا يكون مفعل بعدما كان يشتغل لم اجد تغييرات تذكر في الموقع المغربي
يبقى لغز محير

كود:
cd /tmp   
FreeServer=/etc/CCcam.cfg
EmuServer='/etc/CCcam.cfg'
FreeServertmpa=/tmp/freeservra*
FreeServertmpb=/tmp/freeservrb*
FreeServertmpe=/tmp/freeservre*
FreeServertmpb70=/tmp/freeservrb70
FreeServertmpb71=/tmp/freeservrb71
FreeServertmpb72=/tmp/freeservrb72
FreeServertmpb73=/tmp/freeservrb73
FreeServertmpb74=/tmp/freeservrb74
FreeServertmpa70=/tmp/freeservra70
FreeServertmpa71=/tmp/freeservra71
FreeServertmpa72=/tmp/freeservra72
FreeServertmpa73=/tmp/freeservra73
FreeServertmpa74=/tmp/freeservra74
PATCH_J_XM=$(cat /dev/urandom | tr -dc A-Za-z| head -c 4 )
PATCH_J_XM2=$(cat /dev/urandom | tr -dc A-Za-z| head -c 4 )
curl -d "username=${PATCH_J_XM}&password=${PATCH_J_XM2}" -X POST http://tounfite.ddns.net/affiche.php > $FreeServertmpa71
#sed -ne 's#.*style="color:red">\([^<]*\).*#\1#p' $FreeServertmpa71 > $FreeServertmpb72
wget -q -O- --trust-server-names "http://tounfite.ddns.net/resultat.php" > $FreeServertmpa72
curl -d "username=${PATCH_J_XM}&password=${PATCH_J_XM2}" -X POST http://tounfite.ddns.net/resultat.php > $FreeServertmpa72
 

mino60

عضو مميز
إنضم
5 جويلية 2018
المشاركات
809
مستوى التفاعل
2.188
اردت ان انشأ اضافة Bakino لكن لا تظهر قائمة الافلام هل من مساعدة ان امكن...

Python:
# -*- coding: utf-8 -*-
from Plugins.Plugin import PluginDescriptor
from Screens.Screen import Screen
from Components.ScrollLabel import ScrollLabel
from enigma import eTimer, getDesktop
Version_1 = '6.7.9'
from Components.Sources.List import List
from Plugins.Plugin import PluginDescriptor
import os
import socket
from urllib2 import urlopen, Request, URLError, HTTPError
from enigma import eTimer
from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
import re, urllib, urllib2, time
from twisted.web import client
from Components.ActionMap import NumberActionMap, ActionMap
from Components.MenuList import MenuList
from Components.ActionMap import *
from Components.Label import Label
from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmap, MultiContentEntryPixmapAlphaTest
from Components.config import *
from Components.ConfigList import ConfigList, ConfigListScreen
from Components.config import config, ConfigSubsection, ConfigText, getConfigListEntry, ConfigSelection, ConfigPIN, ConfigDirectory, ConfigYesNo
from enigma import eListboxPythonMultiContent, eListbox, gFont, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, RT_WRAP, RT_VALIGN_CENTER
from enigma import getDesktop, eServiceReference, iServiceInformation
from enigma import eTimer
from datetime import date, datetime
from Components.Label import Label, MultiColorLabel
from Screens.Standby import TryQuitMainloop
from Screens.Console import Console
from Components.MenuList import MenuList
from Components.ActionMap import NumberActionMap, ActionMap
from Plugins.Extensions.FreeServer.outils.Update import Consolo
from Plugins.Extensions.FreeServer.outils.MyShPrombt import *
import os
from struct import pack
from enigma import *
from Screens.MessageBox import MessageBox
from Screens.InputBox import InputBox
from Screens.ChoiceBox import ChoiceBox
from Components.Pixmap import Pixmap
from Components.GUIComponent import *
from Components.Input import Input
from Components.ConfigList import ConfigList
from Screens.ServiceInfo import *
from Tools import Notifications
from Components.config import *
from enigma import eServiceReference
import re
session = None
from time import *
import time
import datetime
from Components.Label import Label
from Components.Button import Button
from Components.Sources.StaticText import StaticText
from Components.ScrollLabel import ScrollLabel
from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
from Components.config import config, ConfigSelection, getConfigListEntry, ConfigSubsection, configfile
from enigma import eListbox, eTimer, eListboxPythonMultiContent, gFont, getDesktop, loadPNG, eConsoleAppContainer
from enigma import *
import os
import sys
import re
from xml.dom import Node, minidom
from twisted.web.client import getPage
import urllib
import base64
DESKHEIGHT = getDesktop(0).size().height()
plugin_path = '/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/fonts'
skin_path = '/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/Skin/'
p_path = '/usr/lib/enigma2/python/Plugins/Extensions/FreeServer'
from enigma import addFont
try:
    addFont('%s/Raleway-Black.ttf' % plugin_path, 'Rale', 100, 1)
 
except Exception as ex:
    print ex
 
currversion = '6.7.9'
############################################################################################################
class baskino(Screen):
    def __init__(self, session):
      
    def __init__(self, session):
        self.session = session
            if DESKHEIGHT < 1000:
            skin = skin_path + 'tntHD.xml'
                else:
                     skin = skin_path + 'tntFHD.xml'
        f = open(skin, 'r')
        self.skin = f.read()
        f.close()
        Screen.__init__(self, session)
        #ThumbsHelper.__init__(self)


        self['actions'] = ActionMap(['SetupActions', 'DirectionActions', 'ColorActions'], {'ok': self.close,
            #'blue': self.info,      
            #'yellow': self.Freeserver,      
            'red': self.close,
            'cancel': self.close}, -1)
            #'green': self.runupdate}, -1)
            #"nextBouquet" : self.keyPageUp,
            #"prevBouquet" : self.keyPageDown


        self['title'] = Label("Baskino.me")
        self['ContentTitle'] = Label(_("Selection"))

         self['Page'] = Label(_("Page:"))
        self['page'] = Label("1")

        self.streamList = []
        self.ml = MenuList([], enableWrapAround=True, content=eListboxPythonMultiContent)
        self['liste'] = self.ml

        self.keyLocked = False
        self.page = 1
        self.lastpage = 999
        self.onLayoutFinish.append(self.loadPage)

    def loadPage(self):
        self.keyLocked = True
        url = "http://baskino.me/new/page/%s/" % str(self.page)
        getPage(url).addCallback(self.parseData)

    def parseData(self, data):
        movies = re.findall('<div class="postcover">.*?<a href="(.*?)">.*?<img title="(.*?)" src="(.*?)"', data, re.S)
        if movies:
            self.streamList = []
            for (url,title,image) in movies:
                self.streamList.append((decodeHtml(title), url, image))
            self.ml.setList(map(self._defaultlistleft, self.streamList))
        self.keyLocked = False
        self.th_ThumbsQuery(self.streamList, 0, 1, 2, None, None, self.page)
        self.showInfos()

    def showInfos(self):
        self['page'].setText("%s" % str(self.page))
        coverUrl = self['liste'].getCurrent()[0][2]
        self.filmName = self['liste'].getCurrent()[0][0]
        self['name'].setText(self.filmName)
        ImageUrl = "%s" % coverUrl.replace('_170_120','_145_215')
        CoverHelper(self['coverArt']).getCover(ImageUrl)

    def keyOK(self):
        exist = self['liste'].getCurrent()
        if self.keyLocked or exist == None:
            return
        url = self['liste'].getCurrent()[0][1]
        getPage(url).addCallback(self.parseVideo)

    def parseVideo(self, data):
        video = re.findall('<iframe src="(.*?)" allow=.*?', data, re.S)
        if video:
            self.session.open(MoviePlayer, [(self.filmName, video[0])], showPlaylist=False, ltype='baskino')
        else:
            message = self.session.open(MessageBoxExt, _("No supported streams found!"), MessageBoxExt.TYPE_INFO, timeout=3)
 
التعديل الأخير:

abo habiba

عضو نشيط
إنضم
11 أوت 2014
المشاركات
128
مستوى التفاعل
70
السلام عليكم
ممكن شرح تغير لون الخط فى المشار اليه بالاسهم
لان اللون ابيض واريد اغيرة الى اى لون اخر
الصورة اوبن بولى

Image 1.png
 

rahal

نجم المنتدى
عضو قيم
إنضم
30 أوت 2007
المشاركات
5.905
مستوى التفاعل
20.247
أعلى