• 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 38
[RELEASE] AutoWidget - Let your widgets work for you!
(2020-04-18, 16:59)drinfernoo Wrote:
(2020-04-18, 06:50)jdig4240 Wrote:
(2020-04-12, 02:38)drinfernoo Wrote: As an update for you guys: I'm working on a couple new features, that I'll probably be releasing fairly soon.

The first little group of fixes have to do with shortcut groups: I've cleaned up the menus surrounding them, so that it is easier than before to point a widget at them, and you shouldn't see any "useless" entries on your widgets anymore (@FXB78 Wink). Along with this, I've figured out how to make widgets that are made from shortcut groups update their content automatically when the group changes. That means that adding/removing/shifting/editing paths in a shortcut group will update any widgets that are pointed at that group automatically, without needing to reload the skin!

I have a few other things coming in updates that I hope to get out pretty quickly, time permitting, but I hadn't seen much movement here in the last couple days, so I wanted you guys to know I was still thinking of you Wink

Let me know if anything's not working, or could work better Smile

Very nice with the cleaner shortcuts group. One question...
Any possibility in the future to have the ability to create folders (Groups) inside a shortcut group? Kinda like Superfavorites. I have a lot of stuff setup that way. For example a Movies folder with Subfolders  inside for 4K Movies, 3D movies, 24/7 Movies, etc.

-Thank You! This is a great addon and love to see where this can go.
*Wow, gonna go have some fun with these new Explode and Clone options 

You can technically already do this Wink You can add a shortcut to another shortcut group. while that makes your main menu a bit messy, it does work.

I'll consider that though... seems like it'd be tricky to do within the current design, but I could see how it would be useful. 

I see what your saying. So if im in autowidgets, i can hit context on a shortcut group and choose add to shotcut group, and add that group to another shortcut group.. The only problem i see now, is I wouldnt be able to add more stuff into the shortcut group thats within the root of the first shortcut group. Lol hope that makes sense.
Reply
(2020-04-18, 18:47)jdig4240 Wrote:
(2020-04-18, 16:59)drinfernoo Wrote:
(2020-04-18, 06:50)jdig4240 Wrote: Very nice with the cleaner shortcuts group. One question...
Any possibility in the future to have the ability to create folders (Groups) inside a shortcut group? Kinda like Superfavorites. I have a lot of stuff setup that way. For example a Movies folder with Subfolders  inside for 4K Movies, 3D movies, 24/7 Movies, etc.

-Thank You! This is a great addon and love to see where this can go.
*Wow, gonna go have some fun with these new Explode and Clone options 

You can technically already do this Wink You can add a shortcut to another shortcut group. while that makes your main menu a bit messy, it does work.

I'll consider that though... seems like it'd be tricky to do within the current design, but I could see how it would be useful. 

I see what your saying. So if im in autowidgets, i can hit context on a shortcut group and choose add to shotcut group, and add that group to another shortcut group.. The only problem i see now, is I wouldnt be able to add more stuff into the shortcut group thats within the root of the first shortcut group. Lol hope that makes sense.

Yeah, you should be able to do that with no problem. If you get errors or something from doing that, let me know. It doesn't always work if you do that with widget groups, but shortcut groups should be fine.
Reply
(2020-04-18, 18:59)drinfernoo Wrote:
(2020-04-18, 18:47)jdig4240 Wrote:
(2020-04-18, 16:59)drinfernoo Wrote: You can technically already do this Wink You can add a shortcut to another shortcut group. while that makes your main menu a bit messy, it does work.

I'll consider that though... seems like it'd be tricky to do within the current design, but I could see how it would be useful. 

I see what your saying. So if im in autowidgets, i can hit context on a shortcut group and choose add to shotcut group, and add that group to another shortcut group.. The only problem i see now, is I wouldnt be able to add more stuff into the shortcut group thats within the root of the first shortcut group. Lol hope that makes sense. 

Yeah, you should be able to do that with no problem. If you get errors or something from doing that, let me know. It doesn't always work if you do that with widget groups, but shortcut groups should be fine. 

Ok, so I would need to keep the original shotcut group in the root of the groups also. I see, so when i sent a shortcut group to another group it it doesnt copy it, it links it correct? So I need to keep the original there. I was thinking i could delete the original after i sent it to another shortcut group so theres not a mess of groups.
Reply
(2020-04-18, 19:07)jdig4240 Wrote:
(2020-04-18, 18:59)drinfernoo Wrote:
(2020-04-18, 18:47)jdig4240 Wrote: I see what your saying. So if im in autowidgets, i can hit context on a shortcut group and choose add to shotcut group, and add that group to another shortcut group.. The only problem i see now, is I wouldnt be able to add more stuff into the shortcut group thats within the root of the first shortcut group. Lol hope that makes sense. 

Yeah, you should be able to do that with no problem. If you get errors or something from doing that, let me know. It doesn't always work if you do that with widget groups, but shortcut groups should be fine. 

Ok, so I would need to keep the original shotcut group in the root of the groups also. I see, so when i sent a shortcut group to another group it it doesnt copy it, it links it correct? So I need to keep the original there. I was thinking i could delete the original after i sent it to another shortcut group so theres not a mess of groups.

Correct, it just links to whatever the shortcut was for, so removing the group would break the shortcut.

I certainly like the idea of making shortcut groups more flexible in that way, but it would probably require a substantial part of the logic behind how groups are added and stored to be overhauled. I'm trying to come up with a good way to handle it if I ever decide to go down that path in the future.
Reply
(2020-04-18, 19:37)drinfernoo Wrote:
(2020-04-18, 19:07)jdig4240 Wrote:
(2020-04-18, 18:59)drinfernoo Wrote: Yeah, you should be able to do that with no problem. If you get errors or something from doing that, let me know. It doesn't always work if you do that with widget groups, but shortcut groups should be fine. 

Ok, so I would need to keep the original shotcut group in the root of the groups also. I see, so when i sent a shortcut group to another group it it doesnt copy it, it links it correct? So I need to keep the original there. I was thinking i could delete the original after i sent it to another shortcut group so theres not a mess of groups. 

Correct, it just links to whatever the shortcut was for, so removing the group would break the shortcut.

I certainly like the idea of making shortcut groups more flexible in that way, but it would probably require a substantial part of the logic behind how groups are added and stored to be overhauled. I'm trying to come up with a good way to handle it if I ever decide to go down that path in the future. 

Sounds good. Dont let me sway you off your intended path on this. I appreciate the functionality of what you created already. Maybe it would make more sense if somebody took a look at Superfavorites and tried to fix that instead, but i think the code is pretty complicated.
Reply
(2020-04-18, 22:11)jdig4240 Wrote:
(2020-04-18, 19:37)drinfernoo Wrote:
(2020-04-18, 19:07)jdig4240 Wrote: Ok, so I would need to keep the original shotcut group in the root of the groups also. I see, so when i sent a shortcut group to another group it it doesnt copy it, it links it correct? So I need to keep the original there. I was thinking i could delete the original after i sent it to another shortcut group so theres not a mess of groups. 

Correct, it just links to whatever the shortcut was for, so removing the group would break the shortcut.

I certainly like the idea of making shortcut groups more flexible in that way, but it would probably require a substantial part of the logic behind how groups are added and stored to be overhauled. I'm trying to come up with a good way to handle it if I ever decide to go down that path in the future. 

Sounds good. Dont let me sway you off your intended path on this. I appreciate the functionality of what you created already. Maybe it would make more sense if somebody took a look at Superfavorites and tried to fix that instead, but i think the code is pretty complicated.

I don't think Super Favorites is really a viable option for the future (or the present, for that matter), for most users. It's been broken and patched many, many times, and is not anywhere close to being "maintainable" any longer, in my opinion.

That being said, my hope is that this will eventually become a "replacement" of sorts, but I believe I'm still a fair bit away from "feature parity". There are a couple of features from Super Favorites I likely won't attempt to replicate, but things like nested groups are now something on my roadmap, thanks to your request Big Grin

I've actually been thinking over it today, and have a really neat idea for how the widgets would work, once that comes down the line Wink
Reply
Smile 
(2020-04-18, 23:38)drinfernoo Wrote:
(2020-04-18, 22:11)jdig4240 Wrote:
(2020-04-18, 19:37)drinfernoo Wrote: Correct, it just links to whatever the shortcut was for, so removing the group would break the shortcut.

I certainly like the idea of making shortcut groups more flexible in that way, but it would probably require a substantial part of the logic behind how groups are added and stored to be overhauled. I'm trying to come up with a good way to handle it if I ever decide to go down that path in the future. 

Sounds good. Dont let me sway you off your intended path on this. I appreciate the functionality of what you created already. Maybe it would make more sense if somebody took a look at Superfavorites and tried to fix that instead, but i think the code is pretty complicated. 

I don't think Super Favorites is really a viable option for the future (or the present, for that matter), for most users. It's been broken and patched many, many times, and is not anywhere close to being "maintainable" any longer, in my opinion.

That being said, my hope is that this will eventually become a "replacement" of sorts, but I believe I'm still a fair bit away from "feature parity". There are a couple of features from Super Favorites I likely won't attempt to replicate, but things like nested groups are now something on my roadmap, thanks to your request Big Grin

I've actually been thinking over it today, and have a really neat idea for how the widgets would work, once that comes down the line Wink 
Was hoping you would say that!!  Big Grin
Reply
Hey Drinfernoo, so ive been using Xonfluence skin with autowidgets just fine by adding the random path to favorites and choosing the favorite as widget and then initialize. Upon more testing I noticed an issue that i can replicate for sure. Ok, so I have a setup where I use more than one skin. The other skin uses skin shortcuts, Xonfluence doesnt. When running Xonfluence by itself autowidgets work fine. But if another skin with skinshortcuts is installed along with Xonfluence, autowidget fails to initialize the widgets in Xonfluence. I can fix this everytime by simply shutting down Kodi and removing the skinshortcuts folder from addon_data, restart Kodi  and try initializing again and works. If i shut down kodi again and replace the skinshortcuts folder and restart kodi, initialize widgets fails. So its definitly something with the script.skinshortuts folder in addon_data that causes it, but i dont understand what that has to do with Xonfluence since Xonfluence doesnt use skin shortcuts anyway. The error logs shows this after the error: 

2020-04-19 12:26:24.069 T:14912  NOTICE: plugin.program.autowidget: [ action: random ] [ group: tv-1587312995.93 ] [ id: 69285975-ec5c-405c-9bbc-0640420f072c ] [ mode: path ]
2020-04-19 12:26:24.107 T:18072 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.program.autowidget/?mode=force
2020-04-19 12:26:24.107 T:18072   ERROR: InputStream: Error opening, plugin://plugin.program.autowidget/?mode=force
2020-04-19 12:26:27.041 T:2256  NOTICE: plugin.program.autowidget: [ mode: force ]
Reply
(2020-04-19, 18:48)jdig4240 Wrote: Hey Drinfernoo, so ive been using Xonfluence skin with autowidgets just fine by adding the random path to favorites and choosing the favorite as widget and then initialize. Upon more testing I noticed an issue that i can replicate for sure. Ok, so I have a setup where I use more than one skin. The other skin uses skin shortcuts, Xonfluence doesnt. When running Xonfluence by itself autowidgets work fine. But if another skin with skinshortcuts is installed along with Xonfluence, autowidget fails to initialize the widgets in Xonfluence. I can fix this everytime by simply shutting down Kodi and removing the skinshortcuts folder from addon_data, restart Kodi  and try initializing again and works. If i shut down kodi again and replace the skinshortcuts folder and restart kodi, initialize widgets fails. So its definitly something with the script.skinshortuts folder in addon_data that causes it, but i dont understand what that has to do with Xonfluence since Xonfluence doesnt use skin shortcuts anyway. The error logs shows this after the error: 

2020-04-19 12:26:24.069 T:14912  NOTICE: plugin.program.autowidget: [ action: random ] [ group: tv-1587312995.93 ] [ id: 69285975-ec5c-405c-9bbc-0640420f072c ] [ mode: path ]
2020-04-19 12:26:24.107 T:18072 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.program.autowidget/?mode=force
2020-04-19 12:26:24.107 T:18072   ERROR: InputStream: Error opening, plugin://plugin.program.autowidget/?mode=force
2020-04-19 12:26:27.041 T:2256  NOTICE: plugin.program.autowidget: [ mode: force ]

I would need to see the whole log. The "error" you've attached is just Kodi griping that it can't create a thumbnail for "Initialize Widgets", because it's not an episode of a show. It's a normal, but rather annoying, "log spam" message.
Reply
I'm trying to add shortcuts to some Radio Stations from the Radio addon in the Kodi Repo, but they won't play. The log seems to indicate "Attempt to use invalid handle -1", this is what's shown when I try to play a station:
Code:
2020-04-22 10:45:10.217 T:139888479172352  NOTICE: plugin.program.autowidget: [ action: call ][ path: xs_manchester-1587548476.35 ][ group: radio_stations-1587548472.25 ][ mode: path ][ id: 27cc997c-7f55-4a2b-b594-7428abd578eb ]
2020-04-22 10:45:10.509 T:139888259311360  NOTICE: [xbmcswift2] Request for "/station/12150" matches rule for function "get_stream_url"
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=12150
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '12150'}
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=12150
2020-04-22 10:45:10.883 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_stream_url result: http://media-ice.musicradio.com:80/RealXSManchesterMP3
2020-04-22 10:45:10.891 T:139888259311360 WARNING: Attempt to use invalid handle -1

It's a very simple shortcut, the group file from the userdata is shown in full here https://paste.kodi.tv/etunomerij.kodi

Is this something can can be fixed in Auto Widgets or is the addon simply incompatible?
Reply
(2020-04-22, 11:55)FXB78 Wrote: I'm trying to add shortcuts to some Radio Stations from the Radio addon in the Kodi Repo, but they won't play. The log seems to indicate "Attempt to use invalid handle -1", this is what's shown when I try to play a station:
Code:
2020-04-22 10:45:10.217 T:139888479172352  NOTICE: plugin.program.autowidget: [ action: call ][ path: xs_manchester-1587548476.35 ][ group: radio_stations-1587548472.25 ][ mode: path ][ id: 27cc997c-7f55-4a2b-b594-7428abd578eb ]
2020-04-22 10:45:10.509 T:139888259311360  NOTICE: [xbmcswift2] Request for "/station/12150" matches rule for function "get_stream_url"
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=12150
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '12150'}
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=12150
2020-04-22 10:45:10.883 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_stream_url result: http://media-ice.musicradio.com:80/RealXSManchesterMP3
2020-04-22 10:45:10.891 T:139888259311360 WARNING: Attempt to use invalid handle -1

It's a very simple shortcut, the group file from the userdata is shown in full here https://paste.kodi.tv/etunomerij.kodi

Is this something can can be fixed in Auto Widgets or is the addon simply incompatible? 

I will attempt to test that add-on specifically, but I'm pretty sure my next release will fix this.

EDIT: Did a quick test. The streams that I did test... didn't work in the add-on Rofl However, with my latest (not public yet) changes, I was able to successfully add them to a shortcut group, and the shortcuts work properly. I should be tightening up a few strings and releasing those changes very soon, so they'll probably be active in 1.5.0.
Reply
Ok guys, I've released 1.5.0 to the repo! It adds the "Active Widgets" menu, which will allow you to view and manage all of the widgets AutoWidget is aware of (ones that have been initialized, basically), refresh them individually, change aspects of their operation (using a similar dialog to the group/path editor), and more. It also gave me the opportunity to do some well-needed cleanup and fixes in processes like initialization and refreshing.

The other big change many of you will notice is that you can now add playable items to shortcut groups. This means you can add direct to shortcuts to movies, episodes, YouTube videos, radio stations, IPTV channels, and more (there is no longer any restriction of any kind on which items you can add) Wink

Enjoy!
Reply
(2020-04-22, 18:34)drinfernoo Wrote:
(2020-04-22, 11:55)FXB78 Wrote: I'm trying to add shortcuts to some Radio Stations from the Radio addon in the Kodi Repo, but they won't play. The log seems to indicate "Attempt to use invalid handle -1", this is what's shown when I try to play a station:
Code:
2020-04-22 10:45:10.217 T:139888479172352  NOTICE: plugin.program.autowidget: [ action: call ][ path: xs_manchester-1587548476.35 ][ group: radio_stations-1587548472.25 ][ mode: path ][ id: 27cc997c-7f55-4a2b-b594-7428abd578eb ]
2020-04-22 10:45:10.509 T:139888259311360  NOTICE: [xbmcswift2] Request for "/station/12150" matches rule for function "get_stream_url"
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=12150
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '12150'}
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=12150
2020-04-22 10:45:10.883 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_stream_url result: http://media-ice.musicradio.com:80/RealXSManchesterMP3
2020-04-22 10:45:10.891 T:139888259311360 WARNING: Attempt to use invalid handle -1

It's a very simple shortcut, the group file from the userdata is shown in full here https://paste.kodi.tv/etunomerij.kodi

Is this something can can be fixed in Auto Widgets or is the addon simply incompatible?  

I will attempt to test that add-on specifically, but I'm pretty sure my next release will fix this.

EDIT: Did a quick test. The streams that I did test... didn't work in the add-on Rofl However, with my latest (not public yet) changes, I was able to successfully add them to a shortcut group, and the shortcuts work properly. I should be tightening up a few strings and releasing those changes very soon, so they'll probably be active in 1.5.0
Hi, I tested 1.5.0 and it didn't seem to like my old shorcuts, so I created them from scratch & the playable items, i.e. Radio now work great! Thanks.

One thing I did notice though... is the ability to edit artwork now broken? It just throws an error now when I go in via Edit Path-> art:icon/thumb Smile
Reply
(2020-04-23, 10:53)FXB78 Wrote:
(2020-04-22, 18:34)drinfernoo Wrote:
(2020-04-22, 11:55)FXB78 Wrote: I'm trying to add shortcuts to some Radio Stations from the Radio addon in the Kodi Repo, but they won't play. The log seems to indicate "Attempt to use invalid handle -1", this is what's shown when I try to play a station:
Code:
2020-04-22 10:45:10.217 T:139888479172352  NOTICE: plugin.program.autowidget: [ action: call ][ path: xs_manchester-1587548476.35 ][ group: radio_stations-1587548472.25 ][ mode: path ][ id: 27cc997c-7f55-4a2b-b594-7428abd578eb ]
2020-04-22 10:45:10.509 T:139888259311360  NOTICE: [xbmcswift2] Request for "/station/12150" matches rule for function "get_stream_url"
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=12150
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={'station': '12150'}
2020-04-22 10:45:10.510 T:139888259311360  NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=12150
2020-04-22 10:45:10.883 T:139888259311360  NOTICE: [plugin.audio.radio_de] get_stream_url result: http://media-ice.musicradio.com:80/RealXSManchesterMP3
2020-04-22 10:45:10.891 T:139888259311360 WARNING: Attempt to use invalid handle -1

It's a very simple shortcut, the group file from the userdata is shown in full here https://paste.kodi.tv/etunomerij.kodi

Is this something can can be fixed in Auto Widgets or is the addon simply incompatible?  

I will attempt to test that add-on specifically, but I'm pretty sure my next release will fix this.

EDIT: Did a quick test. The streams that I did test... didn't work in the add-on Rofl However, with my latest (not public yet) changes, I was able to successfully add them to a shortcut group, and the shortcuts work properly. I should be tightening up a few strings and releasing those changes very soon, so they'll probably be active in 1.5.0
Hi, I tested 1.5.0 and it didn't seem to like my old shorcuts, so I created them from scratch & the playable items, i.e. Radio now work great! Thanks.

One thing I did notice though... is the ability to edit artwork now broken? It just throws an error now when I go in via Edit Path-> art:icon/thumb Smile

Oh dang! It shouldn't be... Can you post the error or a log?
Reply
(2020-04-23, 14:54)drinfernoo Wrote:
(2020-04-23, 10:53)FXB78 Wrote:
(2020-04-22, 18:34)drinfernoo Wrote: I will attempt to test that add-on specifically, but I'm pretty sure my next release will fix this.

EDIT: Did a quick test. The streams that I did test... didn't work in the add-on Rofl However, with my latest (not public yet) changes, I was able to successfully add them to a shortcut group, and the shortcuts work properly. I should be tightening up a few strings and releasing those changes very soon, so they'll probably be active in 1.5.0
Hi, I tested 1.5.0 and it didn't seem to like my old shorcuts, so I created them from scratch & the playable items, i.e. Radio now work great! Thanks.

One thing I did notice though... is the ability to edit artwork now broken? It just throws an error now when I go in via Edit Path-> art:icon/thumb Smile  

Oh dang! It shouldn't be... Can you post the error or a log?  
Yeah sure, this is the relevant part from the log:
Code:
2020-04-23 15:03:46.612 T:3522159488  NOTICE: plugin.program.autowidget: [ action: edit ][ path: bbc_iplayer-1587138844.06 ][ group: catchup-1587138825.32 ][ mode: manage ]
2020-04-23 15:03:54.046 T:3522159488   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'label' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.program.autowidget/main.py", line 9, in <module>
                                                router.dispatch(_plugin, _handle, _params)
                                              File "/storage/.kodi/addons/plugin.program.autowidget/resources/lib/common/router.py", line 61, in dispatch
                                                edit.edit_dialog(group, path)
                                              File "/storage/.kodi/addons/plugin.program.autowidget/resources/lib/edit.py", line 390, in edit_dialog
                                                updated = _get_value(edit_def, key)
                                              File "/storage/.kodi/addons/plugin.program.autowidget/resources/lib/edit.py", line 201, in _get_value
                                                options = _get_options(_def, base_key=key, use_thumbs=True)
                                              File "/storage/.kodi/addons/plugin.program.autowidget/resources/lib/edit.py", line 139, in _get_options
                                                if not label:
                                            UnboundLocalError: local variable 'label' referenced before assignment
                                            -->End of Python script error report<--
Reply
  • 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 38

Logout Mark Read Team Forum Stats Members Help
[RELEASE] AutoWidget - Let your widgets work for you!1