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
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
FilmInfo+ - A german movie details scraper with auto grouping
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="RoChess" data-source="post: 1272744" data-attributes="member: 18896"><p>The TMDb scraper-script in Moving-Pictures is a C# based one, and not XML, due to the way TMDb works with the API key it needs.</p><p></p><p>Feel free to make modifications to it @ <a href="https://github.com/damienhaynes/moving-pictures/blob/master/MovingPictures/DataProviders/TheMovieDbProvider.cs" target="_blank"><strong>https://github.com/damienhaynes/moving-pictures/blob/master/MovingPictures/DataProviders/TheMovieDbProvider.cs</strong></a></p><p></p><p>For that to become part of the public release you'll have to create a pull request.</p><p></p><p>PS: Keep in mind that when you make modifications to not just think "this is how I want it", but to also consider how others might want it, and add advanced configuration options to adjust behavior based on preference. That's why IMDb+ ballooned so quickly because it can become a nightmare to accommodate everybody <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite11" alt=":rolleyes:" title="Roll Eyes :rolleyes:" loading="lazy" data-shortname=":rolleyes:" /></p><p></p><p>PPS: So, pseudo code style you get something like this:</p><p></p><p>[code]</p><p>// add genres</p><p>if (movieDetails.Genres != null) {</p><p> movie.Genres.AddRange(movieDetails.Genres.Select(g => g.Name).ToArray());</p><p> if (MovingPicturesCore.Settings.FixGermanGenres) {</p><p> // fixing Genres</p><p> // adjust "Liebesfilm" into "Liebe & Romantik", etc.</p><p> // might need to expose another advanced config option to allow custom replacement, seem to recall there is another option like that, so you can duplicate syntax.</p><p> }</p><p>}</p><p>[/code]</p></blockquote><p></p>
[QUOTE="RoChess, post: 1272744, member: 18896"] The TMDb scraper-script in Moving-Pictures is a C# based one, and not XML, due to the way TMDb works with the API key it needs. Feel free to make modifications to it @ [URL='https://github.com/damienhaynes/moving-pictures/blob/master/MovingPictures/DataProviders/TheMovieDbProvider.cs'][B]https://github.com/damienhaynes/moving-pictures/blob/master/MovingPictures/DataProviders/TheMovieDbProvider.cs[/B][/URL] For that to become part of the public release you'll have to create a pull request. PS: Keep in mind that when you make modifications to not just think "this is how I want it", but to also consider how others might want it, and add advanced configuration options to adjust behavior based on preference. That's why IMDb+ ballooned so quickly because it can become a nightmare to accommodate everybody :rolleyes: PPS: So, pseudo code style you get something like this: [code] // add genres if (movieDetails.Genres != null) { movie.Genres.AddRange(movieDetails.Genres.Select(g => g.Name).ToArray()); if (MovingPicturesCore.Settings.FixGermanGenres) { // fixing Genres // adjust "Liebesfilm" into "Liebe & Romantik", etc. // might need to expose another advanced config option to allow custom replacement, seem to recall there is another option like that, so you can duplicate syntax. } } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
FilmInfo+ - A german movie details scraper with auto grouping
Contact us
RSS
Top
Bottom