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
Area 51 - Testing Area
MP-4212 My Videos internal scrapers rework
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="Deda" data-source="post: 1032767" data-attributes="member: 89768"><p>So I recheck for 1000th time cover change and can nor see any issue within myvides plugin. All process goes like this</p><p></p><p>1. Open Video info screen (by scan new movie or click on already grabbed movie, grabbing process is not relevant as it is finished before video info screen is open)</p><p>2.Video info screen starts thread to get other cover url links (this is not download of covers or hosting downloaded images somewhere on disk or memory). You will not see number of extra covers until cover search thread ends and you can't click on spin button until those founded covers became visible. Cover numbers are equal to founded + one you see already which is number one.</p><p>3. You click on spin button (Down or Up)</p><p>4. Visible cover link is removed from global files cache in MP core, small and large thumbs inC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title directory are being deleted</p><p></p><p>MP log will show something like this:</p><p>[2013-10-10 21:02:40,503] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}.jpg successful.</p><p>[2013-10-10 21:02:40,505] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}L.jpg successful.</p><p>[2013-10-10 21:02:40,506] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo: Refresh image: New Image url -> <a href="http://www.impawards.com/2012/posters/keep_the_lights_on_ver2.jpg" target="_blank">http://www.impawards.com/2012/posters/keep_the_lights_on_ver2.jpg</a></p><p></p><p>5. I create temp file in %tmp% directory, I do immediately delete as I need only file name and use that name with .jpg extension</p><p></p><p>MP log will show something like this:</p><p>[2013-10-10 21:02:40,509] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\Tmp\tmp18AC.tmp successful.</p><p></p><p>6. url for cover is sent to MP core download from Internet method</p><p></p><p>7. Download method use url and use this -> string url = String.Format("mpcache-{0}", EncryptLine(strURL)); to create download filename (something like this: mpcache-4276735546)</p><p></p><p>8. Download method check in IE user cache directory did we already download that file (same url + encryption will always give the same filename)</p><p>Directory is: C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files</p><p></p><p>This is the root of IE cache dir, not cache from InternetExplorer and MP saves it's files in root. This folder is system folder and it's hidden so it is not visible like ordinary directories.</p><p></p><p>If encrypted filename exists there, image is not downloaded but just copied from cached filed to tmp file from point 5, if cached file do not exist, it is been downloaded and saved to tmp file from point 5</p><p></p><p>MP cache encrypted files there just that already downloaded images are not downloaded again and again from Internet thus saving your bandwidth.</p><p></p><p>in %tmp% dir something like this will be created ->%tmp%<strong>tmp1CD3.tmp.jpg</strong></p><p></p><p>9. I check existence for this file and forward this filename to MP core CreateImage method for creation of small and large thumb with parameter for filename to be exactly as MovieTitle{movieId}</p><p></p><p>10. MP core CreateImage reads tmp file and creates in C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title 2 files:</p><p>MovieTitle{movieId}.jpg ->small thumb</p><p>and</p><p>MovieTitle{movieId}L.jpg ->large thumb</p><p></p><p>MP Log will show something like this:</p><p>[2013-10-10 21:02:21,824] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo Refresh image: Creating new image -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}.jpg</p><p>[2013-10-10 21:02:21,966] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo Refresh image: Creating new image -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}L.jpg</p><p></p><p>11. I delete temp file</p><p></p><p>MP log will show something like this:</p><p>[2013-10-10 21:02:22,006] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\Tmp\tmpCFA0.tmp.jpg successful.</p><p></p><p>12. And call set skin properties method which should refresh data on screen including images (just forward skin properties data and it is up to MP to do the refresh job).</p><p></p><p>This is all, nothing can interfere new cover creation from my videos module as all is straight and no background process from myvideos mess something</p><p></p><p>All I can say that could cause problems is:</p><p></p><p>1. user account on which MP is started doesn't have rights to read/write in %temp% or C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files directories</p><p>2. some external process blocks files which are created from MP (like antivirus programs) and prevents for some time their access or deletion</p><p>3.Your %tmp% folder is full of garbage and needs cleaning</p><p>4. something is wrong while reading/writing files in C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files and you always get back the same cached file for one videofile (this I really can't explain)</p><p>5. Download of image fails and cover is not changed even you see that they are exist in spin button (if this happens, something must be logged in MP error log)</p><p>6. Internal Cover grabbers are broken and resulting urls are garbage (that you can easily check in log with line like:</p><p>[2013-10-10 21:02:21,811] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo: Refresh image: New Image url -> <a href="http://www.impawards.com/2012/posters/keep_the_lights_on.jpg" target="_blank">http://www.impawards.com/2012/posters/keep_the_lights_on.jpg</a>) . If link is strange it is immediately visible, also you can copy link and try to see it from your Internet Browser</p><p>7. Something is wrong in MP set properties methods concerning images if the same property value is pushed more than once, but content of image is different (hardly the case as I never had that problem)</p></blockquote><p></p>
[QUOTE="Deda, post: 1032767, member: 89768"] So I recheck for 1000th time cover change and can nor see any issue within myvides plugin. All process goes like this 1. Open Video info screen (by scan new movie or click on already grabbed movie, grabbing process is not relevant as it is finished before video info screen is open) 2.Video info screen starts thread to get other cover url links (this is not download of covers or hosting downloaded images somewhere on disk or memory). You will not see number of extra covers until cover search thread ends and you can't click on spin button until those founded covers became visible. Cover numbers are equal to founded + one you see already which is number one. 3. You click on spin button (Down or Up) 4. Visible cover link is removed from global files cache in MP core, small and large thumbs inC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title directory are being deleted MP log will show something like this: [2013-10-10 21:02:40,503] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}.jpg successful. [2013-10-10 21:02:40,505] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}L.jpg successful. [2013-10-10 21:02:40,506] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo: Refresh image: New Image url -> [url]http://www.impawards.com/2012/posters/keep_the_lights_on_ver2.jpg[/url] 5. I create temp file in %tmp% directory, I do immediately delete as I need only file name and use that name with .jpg extension MP log will show something like this: [2013-10-10 21:02:40,509] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\Tmp\tmp18AC.tmp successful. 6. url for cover is sent to MP core download from Internet method 7. Download method use url and use this -> string url = String.Format("mpcache-{0}", EncryptLine(strURL)); to create download filename (something like this: mpcache-4276735546) 8. Download method check in IE user cache directory did we already download that file (same url + encryption will always give the same filename) Directory is: C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files This is the root of IE cache dir, not cache from InternetExplorer and MP saves it's files in root. This folder is system folder and it's hidden so it is not visible like ordinary directories. If encrypted filename exists there, image is not downloaded but just copied from cached filed to tmp file from point 5, if cached file do not exist, it is been downloaded and saved to tmp file from point 5 MP cache encrypted files there just that already downloaded images are not downloaded again and again from Internet thus saving your bandwidth. in %tmp% dir something like this will be created ->%tmp%[B]tmp1CD3.tmp.jpg[/B] 9. I check existence for this file and forward this filename to MP core CreateImage method for creation of small and large thumb with parameter for filename to be exactly as MovieTitle{movieId} 10. MP core CreateImage reads tmp file and creates in C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title 2 files: MovieTitle{movieId}.jpg ->small thumb and MovieTitle{movieId}L.jpg ->large thumb MP Log will show something like this: [2013-10-10 21:02:21,824] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo Refresh image: Creating new image -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}.jpg [2013-10-10 21:02:21,966] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo Refresh image: Creating new image -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\Keep the Lights On{1}L.jpg 11. I delete temp file MP log will show something like this: [2013-10-10 21:02:22,006] [Log ] [MPMain ] [DEBUG] - Util: FileDelete C:\Tmp\tmpCFA0.tmp.jpg successful. 12. And call set skin properties method which should refresh data on screen including images (just forward skin properties data and it is up to MP to do the refresh job). This is all, nothing can interfere new cover creation from my videos module as all is straight and no background process from myvideos mess something All I can say that could cause problems is: 1. user account on which MP is started doesn't have rights to read/write in %temp% or C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files directories 2. some external process blocks files which are created from MP (like antivirus programs) and prevents for some time their access or deletion 3.Your %tmp% folder is full of garbage and needs cleaning 4. something is wrong while reading/writing files in C:\Users\[user name]\AppData\Local\Microsoft\Windows\Temporary Internet Files and you always get back the same cached file for one videofile (this I really can't explain) 5. Download of image fails and cover is not changed even you see that they are exist in spin button (if this happens, something must be logged in MP error log) 6. Internal Cover grabbers are broken and resulting urls are garbage (that you can easily check in log with line like: [2013-10-10 21:02:21,811] [Log ] [MPMain ] [DEBUG] - GUIVideoInfo: Refresh image: New Image url -> [url]http://www.impawards.com/2012/posters/keep_the_lights_on.jpg[/url]) . If link is strange it is immediately visible, also you can copy link and try to see it from your Internet Browser 7. Something is wrong in MP set properties methods concerning images if the same property value is pushed more than once, but content of image is different (hardly the case as I never had that problem) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
MP-4212 My Videos internal scrapers rework
Contact us
RSS
Top
Bottom