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: 53
» Latest member: cobateam1
» Forum threads: 16
» Forum posts: 52

Full Statistics

Latest Threads
Suggestions / New Updates
Forum: Python Koding Support & Suggestions
Last Post: trevdev
Today, 06:10 AM
» Replies: 4
» Views: 905
Add_dir and fanart
Forum: Python Koding Support & Suggestions
Last Post: trevdev
06-14-2018, 09:47 PM
» Replies: 8
» Views: 429
playlist play
Forum: Python Koding Support & Suggestions
Last Post: pinoytracker
05-20-2018, 10:02 AM
» Replies: 8
» Views: 492
Subtitle addon and video ...
Forum: Python Koding Support & Suggestions
Last Post: Xampis
03-06-2018, 02:54 PM
» Replies: 0
» Views: 346
Fresh instal
Forum: Python Koding Support & Suggestions
Last Post: LesIsMor
03-06-2018, 08:27 AM
» Replies: 4
» Views: 830
Resolveurl
Forum: Python Koding Support & Suggestions
Last Post: OptimusGREEN
02-10-2018, 06:27 AM
» Replies: 2
» Views: 747
New Python Koding sources...
Forum: Total Revolution - Latest News
Last Post: trevdev
12-28-2017, 11:01 PM
» Replies: 4
» Views: 1,838
dependencies
Forum: Python Koding Support & Suggestions
Last Post: trevdev
12-23-2017, 12:40 PM
» Replies: 1
» Views: 679
Easily re-map the buttons...
Forum: Other Useful Stuff
Last Post: LesIsMor
12-08-2017, 08:09 PM
» Replies: 1
» Views: 2,055
Total Revolution on socia...
Forum: Total Revolution - Latest News
Last Post: trevdev
12-08-2017, 06:40 PM
» Replies: 0
» Views: 411

 
  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

  Easily re-map the buttons on your remote
Posted by: trevdev - 12-08-2017, 07:52 PM - Forum: Other Useful Stuff - Replies (1)

If you've got a remote where the buttons don't work exactly how you'd like them to then the solution is actually a lot more straight forward than you may think.

It could be something very basic like the context menu button not working or maybe you want something a little more complex... How about mapping a button to perform different functions depending on what section of Kodi is currently active (e.g. get the red button during playback to change the aspect ratio)? Well whatever you want to do it's all fairly straight forward with the excellent "Keymap Editor" add-on in the official Kodi repo.

Instructions:

Step 1: Install Keymap Editor
Head over to your Kodi add-ons section, click on Download and in the Program add-ons section you’ll see an add-on called Keymap Editor – install that. This should have now been installed into your "programs" section.
 
Step 2: Configure
Now you’ve got the add-on installed it’s just a case of navigating to the relevant sections and mapping your buttons. Let’s go through an example of how to map a button on your remote to the "context menu"…

Click on Edit – this will allow you to edit your existing key/button mappings.

Click on Global – this means you want the command you’re setting to happen no matter what section of Kodi you're in. You can override this by using the other menus, for example if you click on "Home" it will mean the button you map will only have the set behaviour if the homescreen is in focus.

Click on Navigation – there are multiple options in here but the context menu button is classed as a "navigation" command. Have a look around at all the other options, you can set a screenshot button ("other" option), have a button open directly into an add-on ("add-on" option) and much more.

Click on Context Menu – the context menu is the hidden Kodi dialog popup menu that allows you to access things like add-on settings, mark items in your library as watched etc.

Click on Edit Key – a little notification will popup for a few seconds asking you to press the button you want to map to this function. After a few seconds it will terminate and revert back to the default, you have roughly 5 seconds to complete this task.

Save changes - Once your key mapping is set press back 3 times until you’re at the main menu with Edit, Defaults, Save options. Make sure you click on save at this point otherwise you’ll lose your changes.

CONGRATULATIONS – ALL DONE!
 
Technical Info:
For those of you more technically inclined that want to manually edit commands without the use of the add-on you can find full details in the official wiki here. The page is quite large but don't let that put you off, it's reasonably simple to edit once you get the hang of it and you'll find the location of your keymap.xml file in userdata/keymaps/


Take a look at the video below for further details which shows how to set the screenshot button and also set an add-on to open when a specific button is pressed.



Print this item

  Total Revolution on social media
Posted by: trevdev - 12-08-2017, 06:40 PM - Forum: Total Revolution - Latest News - No Replies

As of today we now have twitter and facebook pages setup and the YouTube channel name has also changed.

Twitter: http://twitter.com/TotalR3volution

Facebook: https://www.facebook.com/TotalR3volution/

YouTube: https://www.youtube.com/TotalRevolution

^ Note the twitter and facebook ones are TotalR3volution and not TotalRevolution. Ideally the YouTube one would have also been called the same but that did not seem possible.


What are the new social media sites for?

All Python Koding support will still be done via this forum and the TRMC support will predominantly be done via the helpdesk, that is not going to change.

We are fully aware that some users prefer to use social media and do not use forums so posts on this forum will be automatically posted on our social media platforms and of course we'll also post up the occasional updates/announcements which we feel is important too. If you would like to share/like the pages that would be very much appreciated Smile

Please share the links with anyone you think Python Koding or TRMC would benefit, thank you.

Print this item

  Suggestions / New Updates
Posted by: trevdev - 12-07-2017, 01:42 PM - Forum: Python Koding Support & Suggestions - Replies (4)

I'll update this whenever a new bug fix / update / addition has been added to the Python Koding framework.

If you have any suggestions of what you'd like to see added feel free to post up details in here.

Do
not ask for code to be added for scraping websites or resolving videos. Although I'm happy to add a few video based features if they aren't already natively available in Kodi it's not something that really interests me. There's already plenty of others out there focusing on video content so I aim to continue focusing on improving the other aspects of Kodi.

Print this item