English > Talk

Alternative

<< < (5/15) > >>

Ivek23:
Maybe this search url link is better for movies search results.

https://www.imdb.com/search/title?title=Casablanca&view=simple

http://www.bing.com/search?q=site%3Awww.imdb.com%2Ftitle+Casablanca

https://www.bing.com/search?q=site%3Awww.imdb.com%2Ftitle+Casablanca

VVV_Easy_Programing:
The Alfa 2 versión:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.2.zip

A lot of improvements and corrections of yours detected problems (The IMDB script download all pages, the awards page got me nearly become crazy).
Remember run with "portable.bat" that in this test version is with the debug mode set. If you have problems, please post the two files:

PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Don't worry if I answer late, I'm decided to finish the PVD_MOD but I have and idea that give a lot of work but it's worth it

PS: Ivek, I just see your message with the search url. Taken note for the next version, sorry.

Ivek23:

--- Quote from: VVV_Easy_Programing on May 15, 2018, 09:08:24 pm ---PS: Ivek, I just see your message with the search url. Taken note for the next version, sorry.
--- End quote ---

No problem, it's okay.

Ivek23:
IMDB_ [EN] [HTTPS] script


--- Quote from: Ivek23 on May 14, 2018, 05:29:31 pm ---Maybe this search url link is better for movies search results.

https://www.imdb.com/search/title?title=Casablanca&view=simple
--- End quote ---

This url url is not the best way to find results, because it does not find some movie titles. The most suitable is (at least for me, because we find about 99% of movie titles) this url title for the search results below.

http://www.imdb.com/find?q=Casablanca&s=tt

The reason why I prefer to use it is because it quickly finds search results. In any case, it is not in the results display even posters for movies. However, the search result code contains a part of the code for movie posters (
--- Code: --- curPos  := PosFrom('<img src="', HTML, curPos) + 10;
endPos  := PosFrom('</td> ', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));

curPos := PosFrom('<a href="/title/', HTML, curPos);
while curPos > 0 do begin
endPos := PosFrom('?ref_=fn_tt_tt_', HTML, curPos);
URL := Trim(Copy(HTML, curPos+9, endPos - curPos-9));
URL := BASE_URL + URL;

curPos := PosFrom('>', HTML, curPos)+1;
endPos := PosFrom('</td> </tr>', HTML, curPos);
Title := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);
// Title   := StringReplace(Title, ') - ', ') ' + #13, true, false, true); 
// Title   := StringReplace(Title, ' - ', '<br />', true, false, true);

curPos  := PosFrom('<img src="', HTML, curPos) + 10;
endPos  := PosFrom('</td> ', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));

AddSearchResult(Title, '', '', URL, '');

curPos := PosFrom('<a href="/title/', HTML, curPos);
 end;
--- End code ---
), because the search results are working properly.

For the next version of PVD_MOD:

IMDB_ [EN] [HTTPS] script

I recommend that no posters for movies are added to the search results display.

afrocuban:

--- Quote from: VVV_Easy_Programing on May 15, 2018, 09:08:24 pm ---The Alfa 2 versión:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.2.zip

A lot of improvements and corrections of yours detected problems (The IMDB script download all pages, the awards page got me nearly become crazy).
Remember run with "portable.bat" that in this test version is with the debug mode set. If you have problems, please post the two files:

PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Don't worry if I answer late, I'm decided to finish the PVD_MOD but I have and idea that give a lot of work but it's worth it


--- End quote ---

Dear Easy, thanks for your work! It is truly and sincerely appreciated. Although still no luck for me with IMDB and FA scripts. Still same errors about no internet connection and started of course via portable.bat.

Here are the logs, hopefully they will help you What is funny is that on the status bar I see the message "downloading from portable.bat" while running IMDB script, and "Downloading from FilmAffinity[ES].psf" while running FA script.

Dear Ivek, it doesn+t work neither with your attached scripts.

Logs:


--- Code: ---(20.05.2018 22:46:34) Compiling script: IMDB_[EN][HTTPS].psf
(20.05.2018 22:46:34) Script compiled successfully: IMDB_[EN][HTTPS].psf
(20.05.2018 22:46:34) Executing script binary
(20.05.2018 22:46:34) Logging in...
(20.05.2018 22:46:34) Function GetDownloadURL BEGIN======================|
(20.05.2018 22:46:34) Global Var-Mode|0|
(20.05.2018 22:46:34) Global Var-DownloadURL||
(20.05.2018 22:46:35)       IMDB URL.
(20.05.2018 22:46:35)       Parse stored information DownloadURL:https://www.imdb.com/title/tt0443649/||
(20.05.2018 22:46:35) Function GetDownloadURL END====================== with Mode=1 Result=C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\debug.bat|
(20.05.2018 22:46:35) Searching movie information for: 10,000 BC
(20.05.2018 22:46:35) Function ParsePage BEGIN======================|
(20.05.2018 22:46:35) Global Var-Mode|1|
(20.05.2018 22:46:35) Global Var-DownloadURL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35) Local Var-URL|http://api.themoviedb.org/3/movie/7840?append_to_response=alternative_titles,credits,keywords,images&api_key=0a4782bd3877917501a2d45e1198f809&language=en|
(20.05.2018 22:46:35)   Begin mode Normal|1|. Getting provider data for MovieID||
(20.05.2018 22:46:35) Function DownloadPage BEGIN======================|
(20.05.2018 22:46:35) Global Var-Mode|1|
(20.05.2018 22:46:35) Global Var-DownloadURL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35)       Local Var-URL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35)       Download with PVdBDownPage in file:|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0443649/||
(20.05.2018 22:46:35)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:37)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:39)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:41)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:43)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:50) Function DownloadPage END with NOT INTERNET connection ===============|

--- End code ---


And the other:


--- Code: ---20180520224106-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/search/title?title=10,000+BC&title_type=feature&release_date=,&view=simple|
EscapedURL=|https://www.imdb.com/search/title?title=10,000+BC&title_type=feature&release_date=,&view=simple|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224127-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=&toyear=|
EscapedURL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=&toyear=|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224139-PVdBDownPage variables:
Number arguments = 2
       URL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+()|
EscapedURL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+()|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224635-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225153-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225234-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225337-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225603-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225652-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225711-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225729-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=2008&toyear=2008|
EscapedURL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=2008&toyear=2008|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225742-PVdBDownPage variables:
Number arguments = 2
       URL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+(2008)|
EscapedURL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+(2008)|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|

--- End code ---

Kind regards

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version