English > Support

Additional rating and batch of PVD

(1/7) > >>

Ivek23:
Questions to be added or more additional rating and batch in PVD, namely an additional rating for MovieMeter (NL)and Zelluloid (DE) and batch plugin for IMDB AllMovie + MovieMeter + Zelluloid or batch plugin for IMDB + MovieMeter,IMDB + Zelluloid.

 Greetings,Ivek23

rick.ca:
There's already an Additional Rating field that you can configure to be used by one of those plugins. It's unlikely another one will be added. You could add a custom rating field, but plugins would not be able to use it. A custom rating field can be used by a script, however. So you can store the AllMovie rating in a custom field, and one of the other ones in Additional Rating.

Batch files are user-created. Those provided are only examples. Examine any .batch file in the Plugins directory, and create your own using the same format.

Ivek23:
Sorry but the additional rating box AllMovie already applied for or is already in use it would need at least one or two additional rating, one for MovieMeter and one for Zelluloid.

Basic rating but for IMDB Rating.

Greetings and thank you Rick.ca
Ivek23

rick.ca:

--- Quote ---the additional rating box AllMovie already applied for or is already in use it
--- End quote ---

That was my point. The AllMovie script can be modified to use a custom rating field, freeing Additional Rating for use by one of the plugins.

This is from the AllMovie script:

--- Code: --- //Rating
 curPos := PosFrom('<img src="/img/st_r', HTML, EndPos);
 if curPos > 0 then begin
  curPos := PosFrom('alt="', HTML, curPos) + 5;
  EndPos := PosFrom(' ', HTML, curPos);
 
  AddFieldValue(mfRating, FloatToStr(StrToFloat(Copy(HTML, curPos, EndPos - curPos)) * 2)); 
 
  LogMessage('Rating:' + Copy(HTML, curPos, EndPos - curPos));
 end else
  curPos := EndPos;

--- End code ---

This is how the same section has been modified in my AllMovie+ script to use a custom rating field named "AllMovie rating":

--- Code: --- //Rating
 AddCustomFieldValueByName('AllMovie rating', '0');
 curPos := PosFrom('<img src="/img/st_r', HTML, EndPos);
 if curPos > 0 then begin
  curPos := PosFrom('alt="', HTML, curPos) + 5;
  EndPos := PosFrom(' ', HTML, curPos);
 
  AddCustomFieldValueByName('AllMovie rating', FloatToStr(StrToFloat(Copy(HTML, curPos, EndPos - curPos)) * 2)); 
   
 end else
  curPos := EndPos;

--- End code ---

Ivek23:
Thanks to your help I Allmovie script processed and running, but I was wondering if there is a script Zelluloiud similarly processed.

Thanks
Ivek23

Navigation

[0] Message Index

[#] Next page

Go to full version