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="otsche2" data-source="post: 999905" data-attributes="member: 104796"><p>@<a href="https://forum.team-mediaportal.com/members/merlin.43371/" target="_blank">Merlin</a> @<a href="https://forum.team-mediaportal.com/members/rochess.18896/" target="_blank">RoChess</a></p><p>Hi! This is a follow up on your discussion on 15th dec 2012 - random numbers</p><p>You searched for a way to generate a random number to spread your requests to the available ofdbgw mirrors.</p><p>I found a possible solution for the FilmInfo+ scraper. The goal is that at the time we need the random number, we already have the ofdb ID with a very high reliabilty - compared to reliabiliy for getting a movie resume! At least in my log files i could see that the ofdbID is very reliable.</p><p>Based on the ID i just generate the remainder (Rest). This should be quasi random.</p><p>Maybe you or anybody else can use this snippet one time. The log entrys should be reduced and instead the ofdb id other values might be used.</p><p> </p><p> <!-- Calculating a quasi random number based on the ofdb_id. remainder --></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### Calculation of Random number start" /></p><p></p><p> <set name="max_rnd_no" value='6' /> <!-- Configure the value max_rnd_no to your needs. The result will be from 0 to (max_rnd_no - 1) --></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### max random number is configured to ${max_rnd_no}" /></p><p> </p><p> <divide name="interimval1" value1="${movie.ofdb_id}" value2="${max_rnd_no}" /></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### interim number is ${interimval1}" /></p><p> </p><p> <multiply name="interimval1" value1="${interimval1}" value2="${max_rnd_no}" /></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### interim number is ${interimval1}" /></p><p> </p><p> <subtract name="rnd_no" value1="${movie.ofdb_id}" value2="${interimval1}" /></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### Random number is ${rnd_no}" /></p><p> <log LogLevel="Info" Message="# FilmInfo+ ### Calculation of Random number end" /></p></blockquote><p></p>
[QUOTE="otsche2, post: 999905, member: 104796"] @[URL='https://forum.team-mediaportal.com/members/merlin.43371/']Merlin[/URL] @[URL='https://forum.team-mediaportal.com/members/rochess.18896/']RoChess[/URL] Hi! This is a follow up on your discussion on 15th dec 2012 - random numbers You searched for a way to generate a random number to spread your requests to the available ofdbgw mirrors. I found a possible solution for the FilmInfo+ scraper. The goal is that at the time we need the random number, we already have the ofdb ID with a very high reliabilty - compared to reliabiliy for getting a movie resume! At least in my log files i could see that the ofdbID is very reliable. Based on the ID i just generate the remainder (Rest). This should be quasi random. Maybe you or anybody else can use this snippet one time. The log entrys should be reduced and instead the ofdb id other values might be used. <!-- Calculating a quasi random number based on the ofdb_id. remainder --> <log LogLevel="Info" Message="# FilmInfo+ ### Calculation of Random number start" /> <set name="max_rnd_no" value='6' /> <!-- Configure the value max_rnd_no to your needs. The result will be from 0 to (max_rnd_no - 1) --> <log LogLevel="Info" Message="# FilmInfo+ ### max random number is configured to ${max_rnd_no}" /> <divide name="interimval1" value1="${movie.ofdb_id}" value2="${max_rnd_no}" /> <log LogLevel="Info" Message="# FilmInfo+ ### interim number is ${interimval1}" /> <multiply name="interimval1" value1="${interimval1}" value2="${max_rnd_no}" /> <log LogLevel="Info" Message="# FilmInfo+ ### interim number is ${interimval1}" /> <subtract name="rnd_no" value1="${movie.ofdb_id}" value2="${interimval1}" /> <log LogLevel="Info" Message="# FilmInfo+ ### Random number is ${rnd_no}" /> <log LogLevel="Info" Message="# FilmInfo+ ### Calculation of Random number end" /> [/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