Description of Change
Currently all internal scrapes which are used by MyVideos are hardcoded and hard to maintain if some changes occur on the Internet scraper source. With this rework they are all moved to a csscript files which can be updated as normal movie scrapers and maintained outside of MP project source. Their public methods are not removed or changed in MP core, so they will work as before with this change.
Source code
GIT link
GIT branch commits
JIRA Issue
JIRA link
Installer/Patch
Installer - not needed, patched files are given for Mp 1.5.0 Final release
Patched files - link for MP 1.5.0 release is in 2nd post (simple copy-paste-replace method with usual warning to backup original files first), link always contain newest version
Testing
1st step
Install final MP 1.5 version and replace files provided from link in post 2 (backup originals).
Update internal grabbers from MP web site via MP MyVideos database configuration or later in MyVideos Database GUI Settings because they can be changed independently of MP code source.
2nd step
Try covers (all 3 sources one by one), fanart and actor details scrapers from configuration on already existing movie in the database
3rd step
Try 2nd step in MP MyVideos plugin (scan one movie which is not in the database). Try to change covers with image up/down button.
Click on cast button and on one actor to see actor details (for this I prefer DefaultWide skin because it contains all properties for actor info screen)
4th step
Manually delete internal grabbers from windows ( default location in Win7 -> C:\ProgramData\Team MediaPortal\MediaPortal\scripts)
and try to update them in GUI from MyVideos or MyVideos database GUI settings and test again 3rd step
5th step
Try again from step 1
Note
For testing fanart you need to install FanartHandler plugin and enable fanart scraping
or
you can fool the system (to enable fanart scraping) and manually create fanart folder in
C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\movies
and check if fanart files are there after movie scan
Changelog
Version 1.
Source code based on current Master (1.5.0 release).
Version 1.1
Reworked code in cover change method for Movie Info screen (when used spin up/down button for cover change), changed dll file -> WindowPlugins.dll
Version 1.2
Added additional debug log, re-added folder.jpg change on cover change (only for DVD/DB folders)
Version 1.3
Internal scripts are now loaded and compiled only once per session (although updating scripts will reload and recompiled them again - tech limitation), changed files -> all except scripts
Version 1.4
Radically reduced all scripts compiling. Due to change, all scripts need to include new class inheritance so all working movie scripts need slight change as:
Movie scripts for MP 1.6+ are now downloaded from new MP Web location for easier maintenance, I copied working ones from old location to a new with change written above and to use new patched files either update scripts from web or copy ones provided in patch archive.
All files are changed so you need to copy them all to appropriate place.
Currently all internal scrapes which are used by MyVideos are hardcoded and hard to maintain if some changes occur on the Internet scraper source. With this rework they are all moved to a csscript files which can be updated as normal movie scrapers and maintained outside of MP project source. Their public methods are not removed or changed in MP core, so they will work as before with this change.
Source code
GIT link
GIT branch commits
JIRA Issue
JIRA link
Installer/Patch
Installer - not needed, patched files are given for Mp 1.5.0 Final release
Patched files - link for MP 1.5.0 release is in 2nd post (simple copy-paste-replace method with usual warning to backup original files first), link always contain newest version
Testing
1st step
Install final MP 1.5 version and replace files provided from link in post 2 (backup originals).
Update internal grabbers from MP web site via MP MyVideos database configuration or later in MyVideos Database GUI Settings because they can be changed independently of MP code source.
2nd step
Try covers (all 3 sources one by one), fanart and actor details scrapers from configuration on already existing movie in the database
3rd step
Try 2nd step in MP MyVideos plugin (scan one movie which is not in the database). Try to change covers with image up/down button.
Click on cast button and on one actor to see actor details (for this I prefer DefaultWide skin because it contains all properties for actor info screen)
4th step
Manually delete internal grabbers from windows ( default location in Win7 -> C:\ProgramData\Team MediaPortal\MediaPortal\scripts)
and try to update them in GUI from MyVideos or MyVideos database GUI settings and test again 3rd step
5th step
Try again from step 1
Note
For testing fanart you need to install FanartHandler plugin and enable fanart scraping
or
you can fool the system (to enable fanart scraping) and manually create fanart folder in
C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\movies
and check if fanart files are there after movie scan
Changelog
Version 1.
Source code based on current Master (1.5.0 release).
Version 1.1
Reworked code in cover change method for Movie Info screen (when used spin up/down button for cover change), changed dll file -> WindowPlugins.dll
Version 1.2
Added additional debug log, re-added folder.jpg change on cover change (only for DVD/DB folders)
Version 1.3
Internal scripts are now loaded and compiled only once per session (although updating scripts will reload and recompiled them again - tech limitation), changed files -> all except scripts
Version 1.4
Radically reduced all scripts compiling. Due to change, all scripts need to include new class inheritance so all working movie scripts need slight change as:
Code:
internal class Grabber : MarshalByRefObject, IIMDBScriptGrabber
{
All files are changed so you need to copy them all to appropriate place.
Last edited: