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
Submit: code patches (MediaPortal/TV-Server/etc.)
Utils: DownLoadImage failed when PageRequest need Header "User-Agent"
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="morfius" data-source="post: 1098878" data-attributes="member: 116650"><p>A bit of history. I detected the existing problem by chance, since MP1 could not download the covers from FilmAffinity. I reported the problem (i believe) in the right place (this post).</p><p>After detecting the problem, i found the procedure in the code where the error occurred: the old routine (both entry points).</p><p>I'm newbie to Media Portal and one do not enter in a house saying "Petite fudge!" code you have here.</p><p></p><p>If you read the first post you will see that indicated three possible solutions. Both respectful with all members.</p><p>At this point and after a lot of testing I came to the conclusion that, adding those two headers the problem was solved without modifying more than two lines of code.</p><p></p><p>Note that those two lines the problem is solved. And as always when one sees an easy and elegant solution, think Why did not I think of that to me? </p><p></p><p>Then try to go a step further by proposing a solution that changed the whole routine. </p><p>I proposed a new routine with its program of testing to isolate as much as possible the check the same. </p><p></p><p>Synchronous downloads is always a source of problems. We are talking about hundreds of images downloaded from websites that do not get excited every time a MediaPortal user decide to upgrade your collection of 1000 movies. </p><p></p><p>But asynchronous download involves changing the internal structure of MediaPortal1 </p><p>(A brief comment. solutions by DownloadAsync I've tried over and over again, are not convincing. </p><p>dotNET 4.5 implements <strong>Await</strong> is <em>Stylish and Effective</em> solution, at least in the tests I've done. But MP1 uses version 4.0 of the Framework.)</p><p></p><p>I think the 26 lines of code that i have proposed are the proper lines, there is not a more or less, (excepion of Sleep. For this line i have alternatives.). We talk between developers. This 26 lines are the result of hundreds of lines, that involves my database and 100 images downloaded every check)</p><p></p><p>After all that said, <strong>i would love to participate</strong>, collaborate with the team of Media Portal, as two lines or as the entire procedure. At the end, the ocean is just a set of water drops. And i would to <em>contribute with my little water droplet</em>. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Greetings from Spain!</p></blockquote><p></p>
[QUOTE="morfius, post: 1098878, member: 116650"] A bit of history. I detected the existing problem by chance, since MP1 could not download the covers from FilmAffinity. I reported the problem (i believe) in the right place (this post). After detecting the problem, i found the procedure in the code where the error occurred: the old routine (both entry points). I'm newbie to Media Portal and one do not enter in a house saying "Petite fudge!" code you have here. If you read the first post you will see that indicated three possible solutions. Both respectful with all members. At this point and after a lot of testing I came to the conclusion that, adding those two headers the problem was solved without modifying more than two lines of code. Note that those two lines the problem is solved. And as always when one sees an easy and elegant solution, think Why did not I think of that to me? Then try to go a step further by proposing a solution that changed the whole routine. I proposed a new routine with its program of testing to isolate as much as possible the check the same. Synchronous downloads is always a source of problems. We are talking about hundreds of images downloaded from websites that do not get excited every time a MediaPortal user decide to upgrade your collection of 1000 movies. But asynchronous download involves changing the internal structure of MediaPortal1 (A brief comment. solutions by DownloadAsync I've tried over and over again, are not convincing. dotNET 4.5 implements [b]Await[/b] is [i]Stylish and Effective[/i] solution, at least in the tests I've done. But MP1 uses version 4.0 of the Framework.) I think the 26 lines of code that i have proposed are the proper lines, there is not a more or less, (excepion of Sleep. For this line i have alternatives.). We talk between developers. This 26 lines are the result of hundreds of lines, that involves my database and 100 images downloaded every check) After all that said, [b]i would love to participate[/b], collaborate with the team of Media Portal, as two lines or as the entire procedure. At the end, the ocean is just a set of water drops. And i would to [i]contribute with my little water droplet[/i]. ;) Greetings from Spain! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
Utils: DownLoadImage failed when PageRequest need Header "User-Agent"
Contact us
RSS
Top
Bottom