English > Scripts and Templates
AllRovi movie script
minolotus:
I trying to test yours script but I think I get lost in with all these codes :o. I have downloaded the version 0.1.0.5 from Ivek's first post and a version from rick.ca (0.1.0.4). My question is if I have to add custom items to the database? I have added a characteristic memo field and that works. But I am not sure if I need more items to test the full possible range of your scripts.
Ivek23:
--- Code: ---(*
//Poster
curPos := PosFrom('<img class="cover-art" src="', HTML, EndPos);
if curPos > 0 then begin
curPos := curPos + Length('<img class="cover-art" src="');
EndPos := PosFrom('?Partner=allrovi.com', HTML, curPos);
ExtraLinks[smPoster] := Copy(HTML, curPos, EndPos - curPos);
if Pos('noimage', ExtraLinks[smPoster]) > 0 then
ExtraLinks[smPoster] := '';
end;*)
--- End code ---
Rick.ca ,I think I've found what part of the problem - Poster.
Now marked like this poster and do test it, then it should work.See also source code for the poster, and you'll see different endings and will need to change this part of the code
--- Code: ---EndPos := PosFrom('?Partner=allrovi.com', HTML, curPos);
--- End code ---
rick.ca:
--- Quote from: Ivek23 on July 12, 2011, 04:52:28 pm ---I added a DVD Releases namely,work does not transfer data...
--- End quote ---
I seem to be having trouble understanding your English. I thought this meant "DVD Releases does not work," but I did not understand why you would post the script if that were the case. Now I see it indeed does not work. I'll leave the changes in the script, as they seem to do no harm. I assume you intend to fix it. Sorry, I have no idea why it doesn't work.
--- Quote ---I think I've found what part of the problem - Poster.
--- End quote ---
I don't understand. The Poster code seems to work fine. I've never seen it fail to get a poster.
Or do you mean it somehow prevents DVD Releases from working? Disabling Poster (I assume that's what enclosing the code in "(*...*)" does) does not change anything for me—still no DVD Releases data.
[Edit] Now I get it. Sorry for being dense. Poster was interfering with my Rovi rating. But I can't figure out how to make them both work... ::)
rick.ca:
--- Quote from: Ivek23 on July 12, 2011, 09:46:06 pm ---
I think I've found what part of the problem - Poster. Now marked like this poster and do test it, then it should work. See also source code for the poster, and you'll see different endings and will need to change this part of the code
--- Code: ---EndPos := PosFrom('?Partner=allrovi.com', HTML, curPos);
--- End code ---
--- End quote ---
Yes, it took me a very long time to understand, but this was the problem. Hopefully, both Poster and Rovi rating will now always normally work. For reasons I still don't understand, if there is no image then the Rating code will fail. :(
It will only get the poster if it's a JPG, but I haven't seen any other types. And they're all poor quality anyway—so I can't imagine why anyone would care.
As for DVD Releases, you're welcome to finish that or not. I've added the alternative option of adding a link (to the Releases page) to the standard Features field. As I recall discussing in the past, I believe this is better solution anyway. The list of links is not very informative, so an interested user is going to go to the website anyway.
Ivek23:
--- Quote from: rick.ca on July 12, 2011, 11:03:52 pm ---
--- Quote from: Ivek23 on July 12, 2011, 04:52:28 pm ---I added a DVD Releases namely,work does not transfer data...
--- End quote ---
I seem to be having trouble understanding your English. I thought this meant "DVD Releases does not work," but I did not understand why you would post the script if that were the case. Now I see it indeed does not work. I'll leave the changes in the script, as they seem to do no harm. I assume you intend to fix it. Sorry, I have no idea why it doesn't work.
--- Quote ---I think I've found what part of the problem - Poster.
--- End quote ---
I don't understand. The Poster code seems to work fine. I've never seen it fail to get a poster.
Or do you mean it somehow prevents DVD Releases from working? Disabling Poster (I assume that's what enclosing the code in "(*...*)" does) does not change anything for me—still no DVD Releases data.
[Edit] Now I get it. Sorry for being dense. Poster was interfering with my Rovi rating. But I can't figure out how to make them both work... ::)
--- End quote ---
I apologize for my clumsy explanation of Releases (DVD Releases), I will see if anything can be changed, otherwise I'll have a procedure for Releases (DVD Releases) removed from the script.
For the poster will also be figuring out how and what.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version