2015-04-10, 17:03
You can remotely prune (P) the texture cache of the FireTV, which will get rid of any leftover artwork. Just run the script on one of your Windows boxes, point it at the FireTV, and use the "P" option.
./texturecache.py notify message title 5000 info
./texturecache.py notify message title 5000 warning
./texturecache.py notify message title 5000 error
./texturecache.py notify message title 5000 "/storage/atest.png"
./texturecache.py notify message title 5000 "/usr/share/kodi/media/icon48x48.png"
./texturecache.py notify message title 5000 "nfs://192.168.0.3/mnt/share/data/atest.png"
./texturecache.py notify message title 5000 "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-poster.jpg"
(2015-04-21, 09:24)fantasticn Wrote: Another thing: The option to show messages on a (remote) Kodi-PC could be very useful for a lot of things. Would it be possible to implement parameters for resizing the popup-box (e.g. to have bigger boxes popping up) or to have pictures shown not only as an icon but in a wider resolution (e.g. the picture of an outdoor camera)? Or do those things too much depend on the skin used on the Kodi-PC?
(2015-04-22, 18:34)cgrey Wrote: Quick question...
When using the qax option, along with the qa.nfo.refresh parameter -- is the CREATED or MODIFIED date of the NFO file used to determine if it is new?
My specific issue:
I have an NFO file created 4/1/15. I modified it yesterday, so now the created date is 4/1/15 and the last modified date is 4/21/15, When I run texturecache with qax and qa.nfo.refresh=1, it doesn't seem to be catching this modified NFO file (the changes I made to it don't end up making it to the database), but it definitely sees (and updates) NFO files that were created on 4/21/15 in this scenario.
If it matters (I assume it's looking at file system attributes for this), I'm running this on a Win7 box.
Thanks
(2015-04-22, 18:53)fantasticn Wrote: thank you very much for your reply and for revising your great tool. Unfortunately I was not able to trigger a popup message with a custom picture. I tried "smb://.../picture.jpg" as well as "nfs://../picture.jpg" (for I also have haneWIN NFS Server running on my Windows-Server), but with no success. The messages went through but they always showed up without any icon at all.
./texturecache.py notify msg title 1500 "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-posterX.jpg"
...
22:22:32 4223.093262 T:1754473536 DEBUG: JSONRPC Server: New connection detected
22:22:32 4223.093262 T:1754473536 INFO: JSONRPC Server: New connection added
22:22:32 4223.109375 T:1754473536 INFO: JSONRPC Server: Disconnection detected
22:22:32 4223.109863 T:1754473536 DEBUG: JSONRPC Server: New connection detected
22:22:32 4223.109863 T:1754473536 INFO: JSONRPC Server: New connection added
22:22:32 4223.110352 T:1754473536 DEBUG: JSONRPC: Value does not match any of the enum values in type
22:22:32 4223.110840 T:1754473536 INFO: JSONRPC Server: Disconnection detected
22:22:32 4223.147949 T:1968001024 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:22:32 4223.148438 T:1947202624 NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
22:22:32 4223.152832 T:1673331776 NOTICE: Thread JobWorker start, auto delete: true
22:22:32 4223.159180 T:1673331776 ERROR: NFS: Failed to stat(mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-posterX.jpg) stat call failed with "NFS: Lookup of /media/Video/MoviesHD/Zombieland (2009)[BDRip]-posterX.jpg failed with NFS3ERR_NOENT(-2)"
22:22:32 4223.159668 T:1673331776 DEBUG: GetImageHash - unable to stat url nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-posterX.jpg
22:22:34 4225.020020 T:1968001024 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
(2015-04-22, 18:53)fantasticn Wrote: However, I am pretty fine with the "warning" and "info" options since they at least offer kind of a "neutral" image. Without those options the message always displays the image of the last pop message (e.g. the image of an addon that was updated and the update message had been shown with its logo). That is quiet random. Therefore I would suggest implementing the "info"-option as the default selection when no other parameter is given.
(2015-04-22, 23:13)Milhouse Wrote:(2015-04-22, 18:34)cgrey Wrote: Quick question...
When using the qax option, along with the qa.nfo.refresh parameter -- is the CREATED or MODIFIED date of the NFO file used to determine if it is new?
My specific issue:
I have an NFO file created 4/1/15. I modified it yesterday, so now the created date is 4/1/15 and the last modified date is 4/21/15, When I run texturecache with qax and qa.nfo.refresh=1, it doesn't seem to be catching this modified NFO file (the changes I made to it don't end up making it to the database), but it definitely sees (and updates) NFO files that were created on 4/21/15 in this scenario.
If it matters (I assume it's looking at file system attributes for this), I'm running this on a Win7 box.
Thanks
It's the lastmodified file attribute returned by Kodi when querying directory/file details in JSON, so should be the modification timestamp.
By default qa/qax will only consider movies and tvshows added to the library in the previous 30 days, so it may be ignoring your movie if it was added to your library more than 30 days ago. Add @qaperiod=9999 to effectively disable this check.
(2015-04-28, 04:50)scott967 Wrote: I see that the "choose art" button can be used to add a new art type to video content. For example, you can use this to add the art type "discart" to music videos. It gets in the database as a "type" for a "media_type" in the video art table. So my question is, is it possible to iterate through all music videos in the database and see if art with art type "discart" is stored (url exists)?
./texturecache.py jd musicvideos | grep \"image | awk -F\" '{ print $2 }' | sort -u
(2015-04-28, 04:50)scott967 Wrote: If not, if file name disc.png or cdart.png exists in the item folder, add it to the database?
./texturecache.py set musicvideo 1 art.poster "nfs://192.168.0.3/mnt/share/media/MusicVids/AVideo-poster.jpg"
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x003bf580 in std::vector<dbiplus::field_value, std::allocator<dbiplus::field_value> >::at(unsigned int) const ()
...
Thread 1 (LWP 620):
#0 0x003bf580 in std::vector<dbiplus::field_value, std::allocator<dbiplus::field_value> >::at(unsigned int) const ()
#1 0x003ae2c4 in CVideoDatabase::GetDetailsForMusicVideo(std::vector<dbiplus::field_value, std::allocator<dbiplus::field_value> > const*, bool) ()
#2 0x003ae548 in CVideoDatabase::GetDetailsForMusicVideo(std::unique_ptr<dbiplus::Dataset, std::default_delete<dbiplus::Dataset> >&, bool) ()
#3 0x003ae8fc in CVideoDatabase::GetMusicVideoInfo(std::string const&, CVideoInfoTag&, int) ()
#4 0x008cb250 in JSONRPC::CVideoLibrary::SetMusicVideoDetails(std::string const&, JSONRPC::ITransportLayer*, JSONRPC::IClient*, CVariant const&, CVariant&) ()
#5 0x008a56f8 in JSONRPC::CJSONRPC::HandleMethodCall(CVariant const&, CVariant&, JSONRPC::ITransportLayer*, JSONRPC::IClient*) ()
#6 0x008a5974 in JSONRPC::CJSONRPC::MethodCall(std::string const&, JSONRPC::ITransportLayer*, JSONRPC::IClient*) ()
#7 0x007be268 in JSONRPC::CTCPServer::CTCPClient::PushBuffer(JSONRPC::CTCPServer*, char const*, int) ()
#8 0x007bf1f0 in JSONRPC::CTCPServer::Process() ()
#9 0x00956a14 in CThread::Action() ()
#10 0x00957280 in CThread::staticThread(void*) ()
#11 0x76dcbd88 in ?? () from /lib/libpthread.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)