[REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.

Jak oceniasz skrypt

1
3
7%
2
1
2%
3
4
10%
4
5
12%
5
8
19%
Cudo :)
21
50%
 
Total votes: 42

kazeciak
Posts: 44
Joined: 2012-10-23 05:17:49

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by kazeciak »

Hello. It does not download country and species information.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

Hi,
You are lucky, I've read your comment just when I had some free time... so I worked on the script :)
I suppose species=category?
I fixed that, and country.
I also fixed roles & actor pictures mentioned before (sorry for the long delay for that, but I don't often have time for scripts, and this script is difficult for me since Polish is very different from English, French or Dutch :) )
I tested with only two movies, I hope it works in all cases.
New version = 3.2.16
wrobelp
Posts: 45
Joined: 2011-07-10 18:59:53

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by wrobelp »

The script stopped downloading the cast.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

It seems that they changed the structure of the page, so it requires more changes than the previous time :(
I'll try to do that in the next days, but I have other things to do already pending, so I don't know when I'll have time.
If someone else can do it: do not hesitate to fix it :)
Yogi_18
Posts: 50
Joined: 2012-02-18 05:56:41

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by Yogi_18 »

Unfortunately, the next fields have died:
- director
- producer
- scenario
- music

and maybe additional fields... :(


Is there a tutorial somewhere on how to fix scripts?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

Not really. Just save the web page, open it in a text editor, check which blocks the script search and compare it with what is in the page: sometimes it is just that the HTML block searched is a little different. Sometimes it is completely different and require a different logic to parse it.
I should try to take a look, but as I said I don't really have so much free time...
kazeciak
Posts: 44
Joined: 2012-10-23 05:17:49

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by kazeciak »

antp wrote: 2023-09-06 12:38:20 Not really. Just save the web page, open it in a text editor, check which blocks the script search and compare it with what is in the page: sometimes it is just that the HTML block searched is a little different. Sometimes it is completely different and require a different logic to parse it.
I should try to take a look, but as I said I don't really have so much free time...
Help us, please :)
Thx
kuba_ps2
Posts: 3
Joined: 2022-09-08 11:18:55

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by kuba_ps2 »

Please help us :)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

I had some time to check. Good news, it seems that the changes were in the end quite minimal.
I did not test a lot of movies, it seemed to work for the fields mentioned above (actors & crew). I updated the script as version 3.2.17.
If you find movies for which it does not work as expected, you can report them here.
kazeciak
Posts: 44
Joined: 2012-10-23 05:17:49

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by kazeciak »

antp wrote: 2023-09-18 08:26:11 I had some time to check. Good news, it seems that the changes were in the end quite minimal.
I did not test a lot of movies, it seemed to work for the fields mentioned above (actors & crew). I updated the script as version 3.2.17.
If you find movies for which it does not work as expected, you can report them here.
Thx :clapping:
wrobelp
Posts: 45
Joined: 2011-07-10 18:59:53

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by wrobelp »

Thanks a lot, but it doesn't get the movie rating.
robinse
Posts: 23
Joined: 2017-09-11 15:24:05

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by robinse »

antp wrote: 2023-09-18 08:26:11 I had some time to check. Good news, it seems that the changes were in the end quite minimal.
I did not test a lot of movies, it seemed to work for the fields mentioned above (actors & crew). I updated the script as version 3.2.17.
If you find movies for which it does not work as expected, you can report them here.
Thx :hihi:
kuba_ps2
Posts: 3
Joined: 2022-09-08 11:18:55

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by kuba_ps2 »

wrobelp wrote: 2023-09-19 06:50:51 Thanks a lot, but it doesn't get the movie rating.
same issue :(
Master_Rafael
Posts: 13
Joined: 2016-01-03 14:34:44

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by Master_Rafael »

Rozwiązanie pobierania ocen i ilości głosów:
w sekcji
// Rating filmweb
należy podmienić z

Code: Select all

	Line := TextBetween(Page.Text, 'filmRating filmRating--hasPanel', 'filmRating filmRating--filmWTS hide');
	Rates := TextBetween(Line, 'filmRating__rateValue">', '<');
	Rates := StringReplace(Rates, ',', '.');
	if Length(Rates) > 0 then
		SetField(fieldRating, Trim(Rates));
	if CanSetCustomField('VotesFilmweb') then
	begin
		Value := TextBetween(Line, 'ratingCount">', '<');
		if Length(Value) > 0 then
			SetCustomField('VotesFilmweb', Trim(Value));
	end;
na

Code: Select all

	Line := TextBetween(Page.Text, 'filmRating filmRating--hasPanel', 'filmRatingHeader');
	Rates := TextBetween(Line, 'filmRating__rateValue">', '<');
	Rates := StringReplace(Rates, ',', '.');
	if Length(Rates) > 0 then
		SetField(fieldRating, Trim(Rates));
	if CanSetCustomField('VotesFilmweb') then
	begin
		Value := TextBetween(Line, 'filmRating__count">', '<');
		if Length(Value) > 0 then
			SetCustomField('VotesFilmweb', Trim(Value));
	end;
wrobelp
Posts: 45
Joined: 2011-07-10 18:59:53

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by wrobelp »

Dzięki działa ładnie.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

Thanks, I updated the file on the server
Yogi_18
Posts: 50
Joined: 2012-02-18 05:56:41

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by Yogi_18 »

Podpowie ktoś w temacie fragmentu skryptu do IMDb...
Chodzi mi o fragment wyszukiwania tytułu na "zewnętrznej" stronie, za każdym razem pojawia się komunikat:

Code: Select all

Skrypt nie odnalazł identycznego tytułu lub nie zgadza się rok produkcji ze strony Filmweb na stronie IMDb.
Pobierze informacje z pierwszej pozycji na liście IMDb najbardziej pasującego tytułu. Możesz sprawdzić czy to jest właściwy film i wprowadzić korekty ręcznie.
Co zrobić by jednak skrypt wyszukiwał film na IMDb?
Jeśli "ręcznie" uzupełnię link IMDb to skrypt działa poprawnie, pobiera ocenę i dodatkowe dane.
Mietek
Posts: 11
Joined: 2020-02-06 11:02:14

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by Mietek »

Dawno nie korzystałem z programu i aktualnie nie mogę zaktualizować skryptu. Chciałem to zrobić z "update scripts". Wybieram filmweb.pl i po chwili wraca do okna wyboru już bez filmweb. Może ktoś podpowie jak mogę zaktualizować skrypt
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by antp »

You can manually download the file from https://update.antp.be/amc/scripts/ and replace the corresponding one in the Scripts folder of ProgramData\Ant Movie Catalog
Janeer
Posts: 1
Joined: 2023-10-24 08:47:47
Location: Canada

Re: [REL] [PL] FilmWeb.pl 3.0 - The Best Polish Script

Post by Janeer »

Thanks for the update, antp! The script seems to be working well, and I appreciate the quick response to reported issues. My work website.
Post Reply