English > Scripts and Templates

CDUniverse script

<< < (3/3)

Ivek23:
In Movie MPAA replace this code

--- Code: --- { Movie MPAA }
lPosition := Pos(K_MOVIE_MPAA_TRT, HTML);
lText := TextBetween(HTML, K_MOVIE_MPAA_BGN, K_MOVIE_MPAA_END, False, lPosition);
AddFieldValueXML('mpaa', lText);
LogMessage('+ Movie MPAA : ' + lText);
--- End code ---
replace with this code

--- Code: --- { Movie MPAA }
lPosition := Pos(K_MOVIE_MPAA_TRT, HTML);
lText := TextBetween(HTML, K_MOVIE_MPAA_BGN, K_MOVIE_MPAA_END, False, lPosition);
lText := StringReplace(lText, ' (MPAA)', '', true, false, true);
AddFieldValueXML('mpaa', lText);
LogMessage('+ Movie MPAA : ' + lText);
--- End code ---
and will remove part of the word (MPAA) [see picture].

The data is written to the standard MPAA field and this word is there is totally unnecessary.

Ivek23:
I fixed the error, now the script again transferred to the movie information, but there are errors in the transfer of posters, which often cduniverse script blocks and then does not transmit any information.

Mainly due to these errors is added cduniverse1 script, where these problems are now no longer exist and as a consequence, no longer blocking the transmission of information, because the blocked part of the code in the script for download posters.

If anyone from users can correct this error in cduniverse script, this solution is very welcome.

cduniverse script and cduniverse1 script and the script is attached.

Navigation

[0] Message Index

[*] Previous page

Go to full version