• 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 23
[RELEASE] RandomItems (Random Items) Script
keibertz Wrote:since two days i get a lot of script errors from RandomItems.py
I installed the latest Version for preEden and i reinstalled script.module.elementtree but the error ist still existing.

please have a lock: http://pastebin.com/0g8UzXE3
i never had trouble with this script before. i have the preEden nightbuild from today installed

if you would be so kind to check this thread and try what i've posted there..
http://forum.xbmc.org/showthread.php?p=9...post951992

post another log as well, using the instructions above and hopefully we can figure out what's causing the error at your end.


cheers.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
ronie Wrote:if you would be so kind to check this thread and try what i've posted there..
http://forum.xbmc.org/showthread.php?p=9...post951992

post another log as well, using the instructions above and hopefully we can figure out what's causing the error at your end.


cheers.

Thx for the quick help i will check
i created all nfo files via XBMC Databaseexport and imported the Database from this nfo files some days ago.
ASUS F2A85-M LE | A6-5400K | 4 GB DDR3-1866 | 128GB SSD | Windows 8 64 bit | XBMC 12 | Cirrus EV3
Onkyo TX-NR509 5.1 + Teufel Consono 35
Samsung UE55ES6300 55"
Harmony 785

www.MyXBMC.de
Reply
ok found the error

i changed a movie with the XWMM WI. The WI is not able to show the German Chars ä,ü,ö,ß instead it produced this sign � And your Add-on is not able to read it ? Cant u just ignor it ? or replace it with something u can read ?

thx for your help Big Grin
ASUS F2A85-M LE | A6-5400K | 4 GB DDR3-1866 | 128GB SSD | Windows 8 64 bit | XBMC 12 | Cirrus EV3
Onkyo TX-NR509 5.1 + Teufel Consono 35
Samsung UE55ES6300 55"
Harmony 785

www.MyXBMC.de
Reply
keibertz Wrote:i changed a movie with the XWMM WI. The WI is not able to show the German Chars ä,ü,ö,ß instead it produced this sign � And your Add-on is not able to read it ? Cant u just ignor it ? or replace it with something u can read ?

yeah, that's what i've been asking myself for the last few days.

- should the script try to work around it, or is it the users responsibility to make sure he doesn't have any corrupt nfo files?
- if i'm gonna add a method to ignore these invalid characters, how much overhead will it add to the script?
- if a add a method (if possible at all) to fix these invalid characters in the script, is it likely that i will introduce new bugs at the same time?

if you still have this .nfo file (or can create another on like it), could you zip it up and upload it somewhere?
it would greatly help my out in testing any possible fixes.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
http://www.megaupload.com/?d=0RYJP4SY

I am sure that i changes this Movietitel with the WI XWMM. I am not 100% sure but i dont think i ever had a look into this NFO before today. Even today i didnt changes anything in this NFO File. I changed the movie name in XWMM againBig Grin
ASUS F2A85-M LE | A6-5400K | 4 GB DDR3-1866 | 128GB SSD | Windows 8 64 bit | XBMC 12 | Cirrus EV3
Onkyo TX-NR509 5.1 + Teufel Consono 35
Samsung UE55ES6300 55"
Harmony 785

www.MyXBMC.de
Reply
keibertz Wrote:http://www.megaupload.com/?d=0RYJP4SY

I am sure that i changes this Movietitel with the WI XWMM. I am not 100% sure but i dont think i ever had a look into this NFO before today. Even today i didnt changes anything in this NFO File. I changed the movie name in XWMM againBig Grin

thanx, i'm able to reproduce your error now.
i'll look into adding a workaround in the script.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
v3.0.6 is crashing XBMC for me. Probably due to the size of my music library (~65,000 songs).

Code:
11:10:18 T:1208   DEBUG: Thread XBPyThread start, auto delete: 0
11:10:18 T:1208   DEBUG: Python thread: start processing
11:10:19 T:1208  NOTICE: -->Python Interpreter Initialized<--
11:10:19 T:1208   DEBUG: XBPyThread::Process - The source file to load is C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py
11:10:19 T:1208   DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomitems;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files\XBMC\addons\script.module.pil\lib;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;C:\Program Files\XBMC\system\python\DLLs;C:\Program Files\XBMC\system\python\Lib;C:\Program Files\XBMC\python26.zip;C:\Program Files\XBMC\system\python\lib\plat-win;C:\Program Files\XBMC\system\python\lib\lib-tk;C:\Program Files\XBMC;C:\Program Files\XBMC\system\python;C:\Program Files\XBMC\system\python\lib\site-packages;
11:10:19 T:1208   DEBUG: XBPyThread::Process - Entering source directory C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.randomitems
11:10:19 T:1208   DEBUG: Instantiating addon using automatically obtained id of "script.randomitems" dependent on version 2.0 of the xbmc.python api
11:10:19 T:1208   DEBUG: script.randomitems: script version 3.0.6 started
11:10:19 T:1684   DEBUG: started alarm with name: randomitems
11:10:20 T:1208   DEBUG: CVideoDatabase::RunQuery took 882 ms for 907 items query: select * from movieview
11:10:38 T:1208   DEBUG: CVideoDatabase::RunQuery took 3220 ms for 11286 items query: select * from episodeview
11:11:50 T:1208   DEBUG: CVideoDatabase::GetMusicVideosByWhere query = select * from musicvideoview
11:11:50 T:1208   DEBUG: CVideoDatabase::GetMusicVideosByWhere time for actual SQL query = 2
11:11:50 T:1208   DEBUG: CMusicDatabase::GetAlbumsByWhere query: select * from albumview where albumview.strAlbum <> ''
11:11:50 T:1208   DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 380 ms
11:11:58 T:1208   DEBUG: CMusicDatabase::GetSongsByWhere query = select * from songview
11:12:19 T:1208   DEBUG: CMusicDatabase::GetSongsByWhere() - took 20716 ms
11:13:04 T:1208   ERROR: CThread::staticThread : Access violation at 0x01709eb8: Writing location 0x003fffc7
11:13:04 T:1208    INFO: Python script stopped
11:13:04 T:1208   DEBUG: Thread XBPyThread 1208 terminating
Reply
HellFire Wrote:v3.0.6 is crashing XBMC for me. Probably due to the size of my music library (~65,000 songs).

if xbmc crashes, you should create a ticket on trac...no matter how many songs you have ;-)

add a link to a full Debug Log on pastebin to the ticket.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
Was hoping someone else had had that. I'll submit a proper bug report once I have VS installed again.
Reply
Star 
Any chance to trigger this script manually...? to cycle 3 new random items on a click or toggle from the home page would be great.
Reply
Will you know how to override a path to a file with another.
Example: The script sends me the full path as Path Series
C: / / MesVideo / Serial / monFilm.avi
and I wish I had the opportunity to replace the film with a logo or other file and therefore have
C: / / MesVideo / Serial / logo.png.
So how to stop after Serial /?

Or is it possible to add a property for that?
Reply
can you add that in randomitem , please, that's my first scriptConfused

http://glass.googlecode.com/files/RandomItems.py
Reply
fmronan Wrote:Will you know how to override a path to a file with another.
Example: The script sends me the full path as Path Series
C: / / MesVideo / Serial / monFilm.avi
and I wish I had the opportunity to replace the film with a logo or other file and therefore have
C: / / MesVideo / Serial / logo.png.
So how to stop after Serial /?
have you tried the usual workarounds, like:
Code:
$INFO[ListItem.Label,,../logo.png]

fmronan Wrote:can you add that in randomitem , please, that's my first scriptConfused

looking at the code (i haven't tested it), i think it won't work with smb shares.
also i don't think your code works when you store episodes in separate season folders?

i would also drop the file existence checks if i were you,
it will cause my drives to spin up each time the script runs. :-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
ronie Wrote:have you tried the usual workarounds, like:
Code:
$INFO[ListItem.Label,,../logo.png]
I don't think this is possible with output from json. I tried this in the global search script and it just pastes the ../logo.png after the path.
Reply
that's right for me with clearart, poster, logo thanks
Image

poster in home for tvshow
Image
Reply
  • 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 23

Logout Mark Read Team Forum Stats Members Help
[RELEASE] RandomItems (Random Items) Script2