Boot straight to video Add-Ons
#1
Is there anyway to boot straight to Video Add-Ons when you launch Kodi? I have tried some autoexec.py codes but to no avail. I initially wanted to start a video plugin but every single code I have tried doesn't work. So if anyone knows how to boot Kodi straight to video-addons on launch that would be amazing. Even offering a reward of £10 to a PayPal or a charity of the person who figures it outs choice. Kind Regards.
Reply
#2
Moved to support.
Reply
#3
autoexec.py
Code:
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(Videos,addons://sources/video/)')

Tested and working on Jarvis & Krypton.

Enjoy Smile

You can donate to the Kodi fund:
https://kodi.tv/contribute/donate/
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#4
(2016-09-23, 15:45)zerocool_ie Wrote: autoexec.py
Code:
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(Videos,addons://sources/video/)')

Tested and working on Jarvis & Krypton.

Enjoy Smile

You can donate to the Kodi fund:
https://kodi.tv/contribute/donate/
It still doesn't seem to be working. I am trying to modify the .apk file of Kodi. It's not the Windows version, should it make a difference? Thank you for getting back to me
Reply
#5
Yep, works for me on Android too

Kodi 16.1

Tested on:
- Samsung Tab S running Android 5.0.2
- Samsung Galaxy S6 running Android 6.0.1

Method:
- Create a text file called autoexec.py with the contents:
Code:
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(Videos,addons://sources/video/)')
- Copy this file to Android/data/org.xbmc.kodi/files/.kodi/userdata/
- Restart Kodi
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#6
(2016-09-26, 21:15)zerocool_ie Wrote: Yep, works for me on Android too

Kodi 16.1

Tested on:
- Samsung Tab S running Android 5.0.2
- Samsung Galaxy S6 running Android 6.0.1

Method:
- Create a text file called autoexec.py with the contents:
Code:
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(Videos,addons://sources/video/)')
- Copy this file to Android/data/org.xbmc.kodi/files/.kodi/userdata/
- Restart Kodi

So if I was to extract the .APK file to Windows. Then place the autoexec.py file in the "assest/userdata" file, it should work from there? I can't see any other userdata folders anywhere else in the .APK . Also this would't work on Kodi first time launch? I would have to close it then launch it again for it to work? Thank you very much for your help so far, you're a star
Reply
#7
The first question - Are you running Kodi on an Android box or on Windows?!?!

You don't modify the APK file at all, that's the installer file for Android OS.
You install Kodi on Android or on Windows, launch it once - then it will create the userdata folder for you.

The location differs depending on where you are running it:
Android --> Android/data/org.xbmc.kodi/files/.kodi/userdata/
Windows --> Start - type %APPDATA%\kodi\userdata - press <Enter>

The userdata folder is where you copy the autoexec.py to
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#8
(2016-09-26, 21:39)zerocool_ie Wrote: The first question - Are you running Kodi on an Android box or on Windows?!?!

You don't modify the APK file at all, that's the installer file for Android OS.
You install Kodi on Android or on Windows, launch it once - then it will create the userdata folder for you.

The location differs depending on where you are running it:
Android --> Android/data/org.xbmc.kodi/files/.kodi/userdata/
Windows --> Start - type %APPDATA%\kodi\userdata - press <Enter>

The userdata folder is where you copy the autoexec.py to
Sorry I should explain in more detail. I have the .APK file downloaded to my laptop in which I want to send over to my Firestick. But I want to modify the file I am sending over to the firestick through ADBfire, to launch a video plugin. Or to launch Video then add ons. I have tried loads of different ways but nothing seems to be working and I am tearing my hair out haha. Thank You
Reply
#9
So for example, when I modify the .APK on my laptop, I want to be able to send it to my stick. Then when I run Kodi on my stick, it will launch the video plug in straight away.
Reply
#10
OK, the picture is clearer now Smile

I haven't used a Firestick before so am no expert, but my guess is that you push the unmodified APK file over so that at least Kodi is up and running on the Firestick. My recommendation is not to modify the APK, unless you have experience packaging Android apps.
Then you would push the autoexec.py over separately afterwards.
A quick Google search led me to a program called adbLink which looks to allow you to copy files to the Firestick into specified directories.

Once you get that autoexec.py file over, you should achieve the result you are looking for!

Good luck!!
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#11
(2016-09-26, 22:02)zerocool_ie Wrote: OK, the picture is clearer now Smile

I haven't used a Firestick before so am no expert, but my guess is that you push the unmodified APK file over so that at least Kodi is up and running on the Firestick. My recommendation is not to modify the APK, unless you have experience packaging Android apps.
Then you would push the autoexec.py over separately afterwards.
A quick Google search led me to a program called adbLink which looks to allow you to copy files to the Firestick into specified directories.

Once you get that autoexec.py file over, you should achieve the result you are looking for!

Good luck!!

Thank you for all your help, I will keep trying Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Boot straight to video Add-Ons0