Personal Video Database

English => Development => Scripts and Templates => Topic started by: VVV_Easy_Programing on February 14, 2015, 09:57:09 am

Title: Script: Some small scripts for programming ideas (Easy Script)
Post by: VVV_Easy_Programing on February 14, 2015, 09:57:09 am
Hello,
I have seen some parts of my scripts are used for more web's scripts. This is welcome.
So I'll add some personal scripts for anyone may used code or ideas for their programs.
But there are not well documented and I can not promise support.

MPAA_IMDB_Recover.psf
Need: I have my movies into folders by age classification and I need the classification MPAA format to display in the skin of XBMC.
Problem to solve: IMDB returns clasification of the country of the IP user. Sometimes it not have the MPAA. There are several formats.
Script Features: Corrects the information of an already traced movie. Using DUMMY_SEARCH_STR file (prevents access to Web). Search in website if necessary. Writes classification according folder if no Web information.

Several_File_Infos.psf
Need: Pass language and codec from filename to PVdB. Check that the year of the file name is the same as the movie information
Problem to solve: Pass that data to XBMC. And check the information.
Script Features: Use movie file fields not significant ('Location' and 'rip') for that, this is coordinated with the template "XBMC Easy_MOD.ptm". Using DUMMY_SEARCH_STR file (avoid access to Web).

FilmAffinity_New_Releases.psf
Need: Search in FilmAffinity DVD rental films the movies with a rating higher of 6 and number of votes greater than 2000.
Problem to solve: Select from a web list and then gets information (for instance, number of votes) of those movies.
Characteristics of Script: A script of multiple passes. Search the list page (stored in the first access) and while the list is parsed, gets the pages from the good movies to get more information (searches similar to "FilmAffinity_[ES]_2014"). All is saved to a file. If GET_ONLY_NOT_PVdB = True, gets only the movies not present in PVdB (but PVdb_CSVDB_FILE is needed). Although not very smart, use global variables for better understanding.

FilmAffinity+IMDB_Rating_Renovate.psf
Need: Renew the ratings of PVD movies.
Problem to solve: Do with minimum download.
Characteristics of Script: A script of multiple passes. Search the saved movie URL and parse the movie page geting the ratings of IMDB and FilmAffinity.


Note: The scripts updates of "FilmAffinity_New_Releases.psf" and "FilmAffinity+IMDB_Rating_Renovate.psf" continue in the topic:
Script: FilmAffinity [ES] 2014 (Easy Script) http://www.videodb.info/forum_en/index.php/topic,3876.0.html (http://www.videodb.info/forum_en/index.php/topic,3876.0.html)

I hope this post can help someone.

PVdB is a very good program. Flexible and complete.
It's a shame so little forum movement  :'(. Thanks Ivek23  ;).
Nostra, Rick.ca we miss you, we are lost without you  ;D.
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: Ivek23 on February 14, 2015, 10:45:42 am
By the way, anyone know how to write to a file with 'StringToFile' true line breaks (<br> not work)?

Tray this #13 ,hope that helps.
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: VVV_Easy_Programing on February 14, 2015, 11:54:30 am
It works. I edit the post and attach new script.
Thanks, Ivek23.
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: Ivek23 on February 14, 2015, 12:42:13 pm
It works. I edit the post and attach new script.
Thanks, Ivek23.

Welcome.
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: VVV_Easy_Programing on February 21, 2015, 02:25:46 pm
Edit first post. 'New_Releases_FilmAffinity' with a new funtion: Gets only the movies not present in PVdB but you need a file with the movies of PVdB made with Export "CSVDB.ptm" standard template.
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: VVV_Easy_Programing on September 13, 2015, 10:53:10 am
The scrip updates of "New_Releases_FilmAffinity.psf" to the changes of the API of FilmAffinity continue in the topic:

Script: FilmAffinity [ES] 2014 (Easy Script)
http://www.videodb.info/forum_en/index.php/topic,3876.0.html (http://www.videodb.info/forum_en/index.php/topic,3876.0.html)
Title: Re: Script: Some small scripts for programming ideas (Easy Script)
Post by: VVV_Easy_Programing on November 22, 2015, 09:45:32 pm
New Script in the first message and name change.