Author Topic: Script: Some small scripts for programming ideas (Easy Script)  (Read 11435 times)

0 Members and 3 Guests are viewing this topic.

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Script: Some small scripts for programming ideas (Easy Script)
« 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

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.
« Last Edit: July 07, 2016, 06:41:51 pm by VVV_Easy_Programing »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #1 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.
« Last Edit: February 14, 2015, 12:41:15 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #2 on: February 14, 2015, 11:54:30 am »
It works. I edit the post and attach new script.
Thanks, Ivek23.
« Last Edit: February 14, 2015, 11:56:23 am by VVV_Easy_Programing »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #3 on: February 14, 2015, 12:42:13 pm »
It works. I edit the post and attach new script.
Thanks, Ivek23.

Welcome.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #4 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.
« Last Edit: February 21, 2015, 02:29:27 pm by VVV_Easy_Programing »

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #5 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

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Script: Some small scripts for programming ideas (Easy Script)
« Reply #6 on: November 22, 2015, 09:45:32 pm »
New Script in the first message and name change.