Posts: 19
Joined: Jul 2010
Reputation:
0
2014-01-29, 21:27
(This post was last modified: 2014-01-29, 21:28 by heinzelm.)
Hi, an issue here on channel configuration. On TV Genres, but especially when I want to choose a single TV Series, I can select e.g. from my series with first letter A to D, then it begins at A again. When I choose from the end, I get e.g. Z to S. All my series between D and S are not selectable. With TV genres it's similiar but not that serious: I get A to K and Z to M for example, so there isn't really a lot missing (and of course, there are not so much genres at all). Where is the problem?
Posts: 17,859
Joined: Jul 2011
Reputation:
371
2014-01-30, 00:03
(This post was last modified: 2014-01-30, 00:05 by Martijn.)
Nothing will change till beta unless someone actually tells what's broken. You can drop anything you want but that won't get it fixed and beta will still be screwed up.
Who knows it could as well be in your code.
Posts: 485
Joined: Oct 2009
I'v been looking at PseudoTV in relation to a gotham fix and it turned to be quite simple. you just have to get rid of certian xbmc.translatePath sections in Globals.py
Code:
SETTINGS_LOC = 'special://profile/addon_data/' + ADDON_ID
CHANNEL_SHARING = False
LOCK_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'
if REAL_SETTINGS.getSetting('ChannelSharing') == "true":
CHANNEL_SHARING = True
LOCK_LOC = xbmc.translatePath(os.path.join(REAL_SETTINGS.getSetting('SettingsFolder'), 'cache')) + '/'
IMAGES_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'images')) + '/'
PRESETS_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'presets')) + '/'
CHANNELS_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'
GEN_CHAN_LOC = os.path.join(CHANNELS_LOC, 'generated') + '/'
MADE_CHAN_LOC = os.path.join(CHANNELS_LOC, 'stored') + '/'
Link:
Globals.py
Posts: 485
Joined: Oct 2009
No probs. Are you talking about exclusive features in your live version?
Just looking at your code there may be a few you missed...
LOCK_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'
This is a must for write access for channels!
CHANNELS_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'
unless you just haven't pushed the changes yet.
Posts: 485
Joined: Oct 2009
2014-01-30, 06:06
(This post was last modified: 2014-01-30, 06:18 by User 55003.)
The PR for the json problem was made "read only access", which isn't a problem if you can create the channel.
If you can't create a valid settings2.xml without a direct path, it makes sence you can't create a valid channel.xsp without a direct path also.
CHANNELS_LOC
also affects the vars..
GEN_CHAN_LOC
MADE_CHAN_LOC
plus as you stated ChannelList.py and some others..
Posts: 485
Joined: Oct 2009
2014-01-30, 07:01
(This post was last modified: 2014-01-30, 07:13 by User 55003.)
Yes I know about the json access to addon_data and when it was fixed.
The previous workaround as you know was to add pseudotv's addon_data as a source.
Even with the json fix the workaround was still needed because the addon was having trouble creating its data files in the addon_data folder.
If you try to run pseudotv without the direct paths and the json fix it fails to write settings2.xml and all the channel.xml files are invalid and you get the error (failed to create channels...) .The json problem was not the only problem.
Its just what I've noticed during testing. Take out of this what you will but I have pseudotv working in gotham.
Also I think you'll find that the security issue does not just apply to json but addons in general.