Total Revolution Management Console - sign up for a free trial today.

TRMC


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 62
» Latest member: lordzoco
» Forum threads: 19
» Forum posts: 61

Full Statistics

Latest Threads
Text/string alignment
Forum: Python Koding Support & Suggestions
Last Post: TonyH
09-01-2018, 08:36 AM
» Replies: 3
» Views: 239
Future OF python Koding
Forum: Python Koding Support & Suggestions
Last Post: whufclee
08-31-2018, 06:12 PM
» Replies: 1
» Views: 365
regex help
Forum: Python Koding Support & Suggestions
Last Post: trevdev
07-06-2018, 12:09 AM
» Replies: 1
» Views: 414
Suggestions / New Updates
Forum: Python Koding Support & Suggestions
Last Post: bromerzz
06-23-2018, 09:29 AM
» Replies: 5
» Views: 1,671
Add_dir and fanart
Forum: Python Koding Support & Suggestions
Last Post: trevdev
06-14-2018, 09:47 PM
» Replies: 8
» Views: 1,069
playlist play
Forum: Python Koding Support & Suggestions
Last Post: pinoytracker
05-20-2018, 10:02 AM
» Replies: 8
» Views: 1,115
Subtitle addon and video ...
Forum: Python Koding Support & Suggestions
Last Post: Xampis
03-06-2018, 02:54 PM
» Replies: 0
» Views: 521
Fresh instal
Forum: Python Koding Support & Suggestions
Last Post: LesIsMor
03-06-2018, 08:27 AM
» Replies: 4
» Views: 1,188
Resolveurl
Forum: Python Koding Support & Suggestions
Last Post: OptimusGREEN
02-10-2018, 06:27 AM
» Replies: 2
» Views: 1,017
New Python Koding sources...
Forum: Total Revolution - Latest News
Last Post: trevdev
12-28-2017, 11:01 PM
» Replies: 4
» Views: 2,551

 
  Text/string alignment
Posted by: TonyH - 08-29-2018, 03:08 PM - Forum: Python Koding Support & Suggestions - Replies (3)

Hey guys, I am trying to display text using the AddDir function but have the items line up and/or be justified. Looking for a result similar to this:

Game a                         5:00
Game b longer name      7:00

I have tried code similar to this

Code:
line_new = '%12s  %12s  %12s' % (word[0], word[1], word[2])


That doesn’t seem to change the layout, is there something already built into the AddDir function that will accomplish what I’m trying to do?
Thanks in advance

Print this item

  Future OF python Koding
Posted by: tdbnz - 07-12-2018, 07:47 AM - Forum: Python Koding Support & Suggestions - Replies (1)

Hi Lee & The Total Revolution Team

It me Thomas  AKA tdbnz -telegram & Youtube (formally also know as teamxkodi kodi DEV/Twitter)   
and Massive community support of the forum noobsandnerds (back in the day LOL)

I am wondering  when is python koding seasion 2 going to come out?

I know that it was ment to come out a while ago and it was something to do with scraping etc

I really keen on learning more and wanting to expand my knowledge so I better my kodi devlopment

I am really keen to see anthor video series soon


I really miss you all and I can't wait to learn more soon

PS: I will be getting back in to the  Totalrevolution software and start learning and continue to do beta testing for you and provide you any bugs and hopefully finally master the software LOL   I know I been busy and forgotten about it for a while


Hope to Chat to you Lee and the team again Soon to learn more about Total Revolution & python Koding

Your Faithful Friend

Thomas
aka tdbnz / Teamxkodi

My Kodi repo is now http://wizardkodi.tk/repo

Beta Tester for Totalrevolution

Print this item

  regex help
Posted by: pink09 - 07-05-2018, 11:45 AM - Forum: Python Koding Support & Suggestions - Replies (1)

Can I use regex on playlist addon?if yes how?
code like this;

Code:
<item>
<title>https://www.parsatv.com/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
 <title>[makelist.param1]</title>
 <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 lists=re.findall('id="divch">(?s)(.*?)</ul',page_data)[0]
 return re.findall('<li>(.*?)<a></a>(?:</li>|</td>)(?s)(.*?)(?:<td.id|</table)',lists)
]]></expres>
<page>https://www.parsatv.com/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
 <title>[makelist2.param2]</title>
 <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[href="(.*?)">.*?>(.*?)<]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
   return re.findall('Loading.the.player[\w\W]*?file.+?[\'"]([^\'"]+)',page_data)[0]+'|Referer=[makelist2.param1]&User-Agent=iPad'
]]></expres>
<page>[makelist2.param1]</page>
</regex>
</item><item>
<title>janjuaplayer</title>
<link>https://$doregex[ip]$doregex[m3u8]|User-Agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Mobile Safari/537.36</link>
<regex>
<name>ip</name>
<expres>redirect=(.*)</expres>
<page>http://www.janjuapublisher.com:1935/loadbalancer</page>
</regex>
<regex>
<name>m3u8</name>
<expres>ea \+ "(.*?)"</expres>
<page>http://www.janjuaplayer.com/membedplayer/discoverycristina/1/600/400</page>
<referer>http://www.janjuaplayer.com</referer>
</regex>
</item>

Print this item

  Add_dir and fanart
Posted by: TonyH - 04-26-2018, 05:10 PM - Forum: Python Koding Support & Suggestions - Replies (8)

Hey guys, glad to see koding still alive and kicking!

I made a quick addon and was looping through a list and sending it to Add_dir but the fanart is only showing the first one on all the items.

The regex and for loop are this


Code:
   match = re.compile('href="(.+?)">(.+?)</a>',re.DOTALL).findall(str(block))
   for link,name in match:
       name = name.replace("/","")
       if name == "atari2600":
           new_fanart = art_path+"a2600_art_blur.jpg"
           thumbnail = art_path+"Atari 2600.png"
        elif name == "atari5200":
            new_fanart = art_path+"a5200_art_blur.jpg"
            thumbnail = art_path+"Atari 5200.png"
ect, ect
 
and the Add_dir function i tried two ways, both with the same outcome of the first fanart being shown on all items.
Code:
Add_Dir(name=name, url=link, mode='roms_page',folder=True, icon=thumbnail, fanart=new_fanart)
Code:
Add_Dir(name=name, url=link, mode='roms_page',folder=True, set_art=({ 'icon': thumbnail, 'fanart' : new_fanart }))
I just want to add that the regex and for loop code along with the mode that is being used work perfectly as a plugin in the jen template addon.
Any idea what im doing wrong? Thanks in advance Smile

Print this item

  playlist play
Posted by: pinoytracker - 04-22-2018, 01:43 PM - Forum: Python Koding Support & Suggestions - Replies (8)

Hi,

Just want to ask for help regarding a playlist.

I'm creating a personal add-on, my problem is the playlist is playing the 2nd part not the first part.

here's the code

Code:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
        
for getlist in source:
   pl.add(getlist, xbmcgui.ListItem(getlist))

xbmc.Player().play(pl,windowed=False)


Thanks

Print this item

  Subtitle addon and video addon for my sites
Posted by: Xampis - 03-06-2018, 02:54 PM - Forum: Python Koding Support & Suggestions - No Replies

Hello there,
I need help for two add-ons

1. Services for my subtitle site.

2. Video addon for my torrent site.

I'm willing to pay for those addons.

Can anyone please help me?

Print this item

  Fresh instal
Posted by: LesIsMor - 03-06-2018, 08:02 AM - Forum: Python Koding Support & Suggestions - Replies (4)

Hey all , I had s couple issues with fresh_instal last night, first was while checking addons dependencies, the function was not ignoring commented out imports from addon xmls. This caused an unknown addon if error as it couldn't find the addon to excluded, I also had to add an import to filetools to get refresh too work however the he found I could ctuom now runs but doesn't work or error? Any advise would be awesome.

Print this item

  Resolveurl
Posted by: OptimusGREEN - 02-09-2018, 11:01 PM - Forum: Python Koding Support & Suggestions - Replies (2)

Hi mate.

Hope you're good.

I noticed my ogtools is failing to install because of a dependency on verrsion 5 of resolveurl. I'm assuming this is a koding dependency?

Not sure if you're aware of the issue.

Take it easy man.

Sent from my SM-G950F using Tapatalk

Print this item

  New Python Koding sources for your repo addon.xml
Posted by: trevdev - 12-23-2017, 12:32 PM - Forum: Total Revolution - Latest News - Replies (4)

If any of you still have the paths to the old Python Koding repo in your repository addon.xml file please update it to use the new paths shown below. I no longer have access to the modules4all repo so although I think it should still work I cannot guarantee anything so the safest solution is to switch your paths to the new ones.

Code:
<info compressed="false">https://raw.githubusercontent.com/totalrevolution/python-koding/master/zips/addons.xml</info>
<checksum>https://raw.githubusercontent.com/totalrevolution/python-koding/master/zips/addons.xml.md5</checksum>
<datadir zip="true">https://raw.githubusercontent.com/totalrevolution/python-koding/master/zips/</datadir>

Print this item

  dependencies
Posted by: jatin55 - 12-23-2017, 10:46 AM - Forum: Python Koding Support & Suggestions - Replies (1)

hello lee i m getting problem installing my addon in kodi says error dependencies Aio pls hekp

Print this item