TOOLSP
"
WELCOME !

Please ! USE [CODE] tags for your LINKS and CODE.

Favor usar balisas [CODE] para sus vínculos y código.

Merci d'utiliser les balises [CODE] pour vos liens et code.


[code]http://Thank.you[/code]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
FRIENDS / PARTNERS

£$π community

créer un forum


Restricted Link to a Personal List, in your Shared List.

Go down

Restricted Link to a Personal List, in your Shared List.

Post by jujuuj on Mon 3 Dec - 10:56


Restricted Link to a Personal List, in your Shared List.

Let your users (...and yourself !) add a Private 'external'Link to their own list, in Your shared List.

Is that understandable ?  ... not sure ... lol

Let's talk Python .. better :

Code:




<item>#JU#V5b#
  <title>          [COLOR slategrey]YOUR  LIST  HERE !  (1)[/COLOR]</title>
  <thumbnail>https://i.imgur.com/SpFefO7.jpg</thumbnail>

<info>
  Linking to any online or local list (xtreamer, XML, M3U)
  </info>
<link>NA</link>  
<externallink>$doregex[WhereAreYou]</externallink>  
 
<regex> <name>WhereAreYou</name>  
<expres><![CDATA[#$pyFunction
import xbmc, xbmcaddon, xbmcgui, re, urllib
def GetLSProData(page_data,Cookie_Jar,m):#JU#V5b#
  path = xbmc.translatePath("special://profile/" + "addon_data/plugin.video.live.streamspro/")
  addon = xbmcaddon.Addon('plugin.video.live.streamspro')
  addon_version = addon.getAddonInfo('version')
  profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
  
  file = "savelocalisation1.txt"
  
  try:
      f = open(path + file, 'r')
      HERE = f.read()
      f.close()
      xbmc.executebuiltin("XBMC.Notification( List found ! , Opening ..., 7000)")
      
  except:
      dialog = xbmcgui.Dialog()
      xbmc.executebuiltin("XBMC.Notification( Enter :   /Full-Path/.../File.Ext   -OR-   the URL , Ex: /home/YOU/Docs/List.xml  http://1.2.3.4:0/get.php?username=U&password=P&type=m3u, 30000)")
      HERE = dialog.input('¿ DONDE ? OU ? WHERE ? ... is your List ? ', type=xbmcgui.INPUT_ALPHANUM)
      
      dialogue = xbmcgui.Dialog()
      ret = dialogue.select('Please precise OPTION for opening !', ['Nothing !  Just use £$π  (for .xml and .m3u uncut) ', 'F4M with option $$TSDOWNLOADER$$   (for xtream and .ts cut)', 'F4M with option $$HLSRETRY$$   (if hls cut)', 'Nothing more ! Option is already precised ...'])
      options = ['', '$$TSDOWNLOADER$$', '$$HLSRETRY$$', '']
      OPT = options[ret]
    
      HERE = HERE.replace("&amp;", "&").replace(" ", "%20")
      HERE = HERE + OPT
      f = open(path + file, 'w')
      f.write(HERE)
      f.close()  
      savednotif = "XBMC.Notification( List has been saved ! , in /...kodi/userdata/addon_data/plugin.video.live.streamspro/" + file + ", 15000)"
      xbmc.executebuiltin(savednotif)
      
  return HERE
  
 ]]></expres>
<page></page>
</regex>

</item>
    


This Item can Save (locally & privately) and then Open
any list of type M3U XML Xtreamer.
List can be online, or in your PC.

If you want to reproduce this item more than 1 time, then you should modificate the number in :
file = "savelocalisation1.txt"


Good luck !

Any question, suggestion and improvement welcome.
avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum