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
Development
General Development (no feature request here!)
Code for removing movies with deleted files
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="mswiege" data-source="post: 315493" data-attributes="member: 83514"><p>Hi!</p><p></p><p>I'm using MediaPortal for quite a while now and love that it is open source so I (C++/C# developer) can customize it myself if I come up with something.</p><p>Now I added a functionality that I missed for quite a while and am very surprised why it never got already included to an release:</p><p>If you (like myself) have many movies stored on disk and use the "Movie" section of MediaPortal a lot you sooner or later come up to the problem to always have manually keep your movie database clean because movies (files) you delete from your hard disk get not removed from the movie database and therefor still will be shown in your MediaPortal until you delete the entry manually from the configuration program.</p><p>I now simply added a button to the "Scan" tab at the "Movie Database" section of the configuration program like this:</p><p><img src="http://www.cradle-software.de/movie.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>After clicking the button the program scans all movies in the DB and checks if all files associated to the movie still exist on the disk. If one or more movies with missing video files are found a list with the found movies is presented to the user:</p><p><img src="http://www.cradle-software.de/movie2.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>From this list the user can select which movies should be deleted from the DB (at the beginning all movies are selected by default).</p><p>After clicking on "OK" the selected movies get removed from the db and you have a nice and clean database with only movies that really exist on your disk.</p><p><img src="http://www.cradle-software.de/movie3.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>To add this feature you can unzip the attached file to the "Configuration" folder of the MediaPortal folder. </p><p>It contains the modified MovieDatabase.cs (based on current RC3 SVN) which has the new button included and the click handler of the button.</p><p>For the subdialogs folder the DlgMovieMissingFiles.cs file exists that is used for the presentation and selection of the found movies.</p><p>All the code should confirm with your coding guidelines</p><p></p><p>Perhaps someone of the developers likes to add this feature (I know that 1.0 is currently feature freezed, but this is a really simple extra that can help a lot). If it is possible that I could become a registered developer of MediaPortal myself, I would be happy to commit the changes myself and will also assist in the future with my coding skills.</p><p></p><p>Greetings!</p><p> Maik</p></blockquote><p></p>
[QUOTE="mswiege, post: 315493, member: 83514"] Hi! I'm using MediaPortal for quite a while now and love that it is open source so I (C++/C# developer) can customize it myself if I come up with something. Now I added a functionality that I missed for quite a while and am very surprised why it never got already included to an release: If you (like myself) have many movies stored on disk and use the "Movie" section of MediaPortal a lot you sooner or later come up to the problem to always have manually keep your movie database clean because movies (files) you delete from your hard disk get not removed from the movie database and therefor still will be shown in your MediaPortal until you delete the entry manually from the configuration program. I now simply added a button to the "Scan" tab at the "Movie Database" section of the configuration program like this: [IMG]http://www.cradle-software.de/movie.gif[/IMG] After clicking the button the program scans all movies in the DB and checks if all files associated to the movie still exist on the disk. If one or more movies with missing video files are found a list with the found movies is presented to the user: [IMG]http://www.cradle-software.de/movie2.gif[/IMG] From this list the user can select which movies should be deleted from the DB (at the beginning all movies are selected by default). After clicking on "OK" the selected movies get removed from the db and you have a nice and clean database with only movies that really exist on your disk. [IMG]http://www.cradle-software.de/movie3.gif[/IMG] To add this feature you can unzip the attached file to the "Configuration" folder of the MediaPortal folder. It contains the modified MovieDatabase.cs (based on current RC3 SVN) which has the new button included and the click handler of the button. For the subdialogs folder the DlgMovieMissingFiles.cs file exists that is used for the presentation and selection of the found movies. All the code should confirm with your coding guidelines Perhaps someone of the developers likes to add this feature (I know that 1.0 is currently feature freezed, but this is a really simple extra that can help a lot). If it is possible that I could become a registered developer of MediaPortal myself, I would be happy to commit the changes myself and will also assist in the future with my coding skills. Greetings! Maik [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Code for removing movies with deleted files
Contact us
RSS
Top
Bottom