Thread Rating:
  • 0 Vote(s) - 0 Average
Release - Visual Thumbs - (Create thumbs for subfolders in picture library)
#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>
Reply
#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
Kodi addons: Lanik repo
Reply
#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>
Kodi addons: Lanik repo
Reply
#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
Reply
#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
Kodi addons: Lanik repo
Reply
#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
Kodi addons: Lanik repo
Reply
#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
Reply
#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
Kodi addons: Lanik repo
Reply
#54
v2.4
- parsing advancedsettings.xml and adding exclusion for folder.png
Kodi addons: Lanik repo
Reply
#55
v2.5
- code cleanup
Kodi addons: Lanik repo
Reply
#56
v2.6
- All strings read from language files
- Unicode fixes
Kodi addons: Lanik repo
Reply
#57
If you like this add on, please like the Facebook page: Visual Thumbs
Kodi addons: Lanik repo
Reply
#58
v2.7
- Logo, banner, fanart
Kodi addons: Lanik repo
Reply
#59
v2.8
- Change all xml guisettings reading from xml.dom to json
Kodi addons: Lanik repo
Reply
#60
v2.9
- Improve logic
Kodi addons: Lanik repo
Reply



Logout Mark Read Team Forum Stats Members Help
Visual Thumbs - (Create thumbs for subfolders in picture library)00