Release - Visual Thumbs

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
peppe_sr Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 15
Location: Italia, Sicilia, Siracusa
Post: #46
sure, i now that.
have to think a way to force the refresh.

EDIT

in advancedsettings.xml there is an interesting code.

Code:
2.7 Photos settings

2.7.2 pictureexcludes
Matches filenames or folders which should be excluded from being displayed in My Pictures using a list of Regular Expressions

<pictureexcludes>  <!-- Regular expressions that if evaluated to true won't be displayed in My Pictures -->
  <regexp>small</regexp>
  <regexp>[-\._ ](sample|trailer)[-\._ ]</regexp>
</pictureexcludes>
(This post was last modified: 2016-08-01 12:03 by peppe_sr.)
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #47
(2016-08-01 11:45)peppe_sr Wrote:  sure, i now that.
have to think a way to force the refresh.

EDIT

in advancedsettings.xml there is an interesting code.

Code:
2.7 Photos settings

2.7.2 pictureexcludes
Matches filenames or folders which should be excluded from being displayed in My Pictures using a list of Regular Expressions

<pictureexcludes>  <!-- Regular expressions that if evaluated to true won't be displayed in My Pictures -->
  <regexp>small</regexp>
  <regexp>[-\._ ](sample|trailer)[-\._ ]</regexp>
</pictureexcludes>
Hmm interesting. .. will try Smile

Sent from my GT-N7100 using Tapatalk
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #48
Yes, this has to be in advancedsettings.xml:

Code:
<advancedsettings>
    <pictureexcludes>  <!-- Regular expressions that if evaluated to true won't be displayed in My Pictures -->
        <regexp>folder.png</regexp>
    </pictureexcludes>
</advancedsettings>

and the folder.png is not shown. Now only to edit the script to generate PNG instead of JPG Smile

D>
(This post was last modified: 2016-08-01 14:40 by DaLanik.)
find quote
peppe_sr Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 15
Location: Italia, Sicilia, Siracusa
Post: #49
great, i read that part of code years ago, it was somewhere in my mind........

remain the refresh problem after the script ends!
are you sure that regenerate thumbs works also for that?
if so you can add a built in command to execute a first refresh after all thumbs are create. i can't find a specific one maybe is this generic refresh command:
Code:
Container.Refresh  -->  Refresh current listing
but really don't know if you can use it inside the script.
Peppe
(This post was last modified: 2016-08-01 15:33 by peppe_sr.)
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #50
Sometimes regenerate thumbs works, sometimes you need to open the folder, return and THEN do "regenerate" in order to update.... sometimes it updates only single folder, sometimes all folders in a level.... Smile
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #51
OK, got everything working except "refresh"... just have to automate adding regex to advancedsettings.xml, which si not a problem but will take some time Smile
find quote
peppe_sr Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 15
Location: Italia, Sicilia, Siracusa
Post: #52
good.
also create advancedsettings.xml if not present, that i think is the common situation of most kodi users. but this feature is not so important.
about refresh, when i suggested to use more than one image format it was because switching between formats should force the refresh. made some test in the past and i'm pretty sure about this.
Peppe
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #53
v2.3
- Added option to make thumbs as PNG file, not only JPG, so it supports transparency now
- Hides folder.png from being displayed as a picture by making advancedsettings.xml (only if file already doesn't exist)
- Various small optimizations

So for the time being, I am not updating advancedsettings.xml if it exists, only creating it if it does't. If it exists, and exception for folder.png is there - then it;s OK. If it's not there... user must add it manualy. Still have to do the part of updating the XML.... Smile
find quote
DaLanik Offline
Senior Member
Posts: 125
Joined: Apr 2016
Reputation: 4
Location: Prague, CZ
Post: #54
v2.4
- parsing advancedsettings.xml and adding exclusion for folder.png
find quote
Post Reply