home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
Why does artist preview has darkgray borders?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="joostzilla" data-source="post: 595344"><p>thanks for this... Only i receive an error message: see attachment.</p><p>Am i doing something wrong? </p><p></p><p></p><p></p><p>option explicit</p><p></p><p>dim objFSO, objFolder, objSubFolders, objArtistFolder</p><p>dim strArtistname, strFolderJPG, strThumbJPG</p><p></p><p></p><p>'==== change these values ===</p><p>const strMusicFolder ="L:\iTunes Music"</p><p>const strThumbFolder ="C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Music\Artists"</p><p></p><p></p><p>set objFSO = CreateObject("Scripting.FileSystemObject")</p><p>set objFolder = objFSO.getfolder(strMusicFolder)</p><p>set objSubFolders = objFolder.SubFolders</p><p></p><p>for each objArtistFolder in objSubFolders</p><p> strArtistName = objArtistFolder.Name</p><p> strFolderJPG = objArtistFolder.path & "\folder.jpg"</p><p></p><p> with objFSO </p><p></p><p> if .FileExists (strFolderJPG) then</p><p> </p><p> 'large thumbs</p><p> strThumbJPG = strThumbFolder & "\" & strArtistName & "L.jpg"</p><p> if not .FileExists (strThumbJPG) then .CopyFile strFolderJPG, strThumbJPG</p><p></p><p> 'small thumbs</p><p> strThumbJPG = strThumbFolder & "\" & strArtistName & ".jpg"</p><p> if not .FileExists (strThumbJPG) then .CopyFile strFolderJPG, strThumbJPG</p><p></p><p> end if</p><p></p><p> end with</p><p></p><p>next</p><p></p><p>set objArtistFolder = nothing</p><p>set objSubFolders = nothing</p><p>set objFolder = nothing</p><p>set objFSO = nothing</p></blockquote><p></p>
[QUOTE="joostzilla, post: 595344"] thanks for this... Only i receive an error message: see attachment. Am i doing something wrong? option explicit dim objFSO, objFolder, objSubFolders, objArtistFolder dim strArtistname, strFolderJPG, strThumbJPG '==== change these values === const strMusicFolder ="L:\iTunes Music" const strThumbFolder ="C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Music\Artists" set objFSO = CreateObject("Scripting.FileSystemObject") set objFolder = objFSO.getfolder(strMusicFolder) set objSubFolders = objFolder.SubFolders for each objArtistFolder in objSubFolders strArtistName = objArtistFolder.Name strFolderJPG = objArtistFolder.path & "\folder.jpg" with objFSO if .FileExists (strFolderJPG) then 'large thumbs strThumbJPG = strThumbFolder & "\" & strArtistName & "L.jpg" if not .FileExists (strThumbJPG) then .CopyFile strFolderJPG, strThumbJPG 'small thumbs strThumbJPG = strThumbFolder & "\" & strArtistName & ".jpg" if not .FileExists (strThumbJPG) then .CopyFile strFolderJPG, strThumbJPG end if end with next set objArtistFolder = nothing set objSubFolders = nothing set objFolder = nothing set objFSO = nothing [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
Why does artist preview has darkgray borders?
Contact us
RSS
Top
Bottom