[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

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 »

Have you deleted the file "Stringutils7552.pas" from the Scripts folder?
You can get it back from http://update.antp.be/amc/scripts/
zbig1
Posts: 3
Joined: 2024-06-04 17:33:07

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

Post by zbig1 »

In my Scripts folder are en2pl, cp1250, StringUtils7552, BatchCommon7552, ScorEpioNCommonScript;Filmweb (PL). All up to date. After running, the same error continues. Is the above - a good configuration?
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 »

Maybe you are missing StringUtils1.pas
That one is included indirectly by StringUtils7552.pas
If you want to remove unused scripts, in general it is better to do that only with .ifs files but to keep all the .pas files in your scripts folders, as these do not appear in the scripts list anyway.
zbig1
Posts: 3
Joined: 2024-06-04 17:33:07

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

Post by zbig1 »

Indeed, this file was missing. Everything is laughing as it should. Thanks a lot for your help :grinking:
cosanostra
Posts: 14
Joined: 2020-01-23 16:50:03

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

Post by cosanostra »

W wersji skryptu filmweb program zaczął pobierać zdjęcia z filmu ale pobiera tylko kilka; 4,5 nie raz nawet z 7 a nie pobiera wszystkich. To samo dotyczy plakatów. obojętne jaką liczbę by nie ustawił to pobiera tylko 1 plakat.
Próbowałem wpisywać 999999 ale skrypt przez to ustawienie dużo dłużej działał a i tak pobierał tylko tą samą liczbę zdjęć czy plakatów co przy innych ustawieniach. Nie ważne czy wpisze się 5 czy 25 on i tak pobierze tyle co chce ale na pewno nie wszystkie :(

Przykłady:

Code: Select all

https://www.filmweb.pl/film/%C5%BBycie+za+%C5%9Bmier%C4%87-2005-123550/photos
na stronie 35 zdjęć a pobiera tylko 4

Code: Select all

https://www.filmweb.pl/film/Siódmy+syn-2014-462549
na stronie 25 zdjęć a pobiera tylko 8

Code: Select all

https://www.filmweb.pl/film/Zwarcie-2021-837065
na stronie 35 zdjęć a pobiera tylko 6

z plakatami inaczej bo zawsze pobiera tylko 1 i nic więcej :(

---------------------------------------------------------------------------------------

In the filmweb script version, the program started downloading photos from the film but only downloaded a few; 4,5 sometimes even 7 but it doesn't download all of them. The same applies to posters. no matter what number I set, it only downloads 1 poster. I tried entering 999999 but the script worked much longer because of this setting and it still downloaded only the same number of photos or posters as with other settings. It doesn't matter if you enter 5 or 25, it will still download as many as it wants, but definitely not all of them :(

Examples:

Code: Select all

https://www.filmweb.pl/film/%C5%BBycie+za+%C5%9Bmier%C4%87-2005-123550/photos
on the page there are 35 photos, but it only downloads 4

Code: Select all

https://www.filmweb.pl/film/Siódmy+syn-2014-462549
on the page there are 25 photos, but it only downloads 8

Code: Select all

https://www.filmweb.pl/film/Zwarcie-2021-837065
on the page there are 35 photos, but it only downloads 6

it's different with posters because it always downloads only 1 and nothing more :(

********************

Edit

Teraz to dopiero zauważyłem. Program w ogóle nie pobiera zdjęć (screenów) z filmu ze strony filmweb.pl. On pobiera zdjęcia aktorów.
Jak odznaczyłem mu pobieranie zdjęć aktorów to w ogóle nic nie pobiera żadnych zdjęć :(
---------------------------
I just noticed it now. The program does not download any photos (screenshots) from the film from the filmweb.pl website. It downloads photos of the actors. When I unchecked downloading photos of the actors, it did not download any photos at all :(

Pomocy. HELP.
wrobelp
Posts: 45
Joined: 2011-07-10 18:59:53

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

Post by wrobelp »

Skrypt przestał pobierać plakaty z filmów, ktoś coś poradzi.

The script has stopped downloading movie posters, can someone help?
cosanostra
Posts: 14
Joined: 2020-01-23 16:50:03

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

Post by cosanostra »

Dołączam się do prośby wyżej.
robinse
Posts: 23
Joined: 2017-09-11 15:24:05

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

Post by robinse »

I cant get a movie poster :hmh:
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 »

For which movie?
I tried two, one was working:
https://www.filmweb.pl/film/Du%C5%BCy-1988-5246
another not:
https://www.filmweb.pl/film/Szklana+pu% ... -1995-1272
the second one is a .webp image instead of .jpg
AMC does not support webp (which was not as popular 20 years ago as it is now...)
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 »

Indeed, these have webp posters instead of jpeg :/
So for now there is nothing that can be done in the script, AMC would have to be updated to support webp, which I don't know if it is easily doable.

Another solution would by putting some kind of conversion tool on my web server, so AMC could call that tool to retrieve the webp image converted to jpeg.
The advantage is that it would not require change in AMC, and very small change in the script.
I'll try to take a look to that solution, but I don't have much time for it now, it may be for next week but it could also have to wait a little longer.
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 »

In the end, as it was quite easy to do, I had a few minutes just now to do that, and it seems to work.
You can get version 3.2.21 via "update scripts" or from https://update.antp.be/amc/scripts/
It seems to work fine, at least for the few movies I tested :)
Images are converted to jpeg 92% quality, I don't know in term of size how that compares to the images that were previously provided by filmweb.
In case they are much smaller/bigger (in file size), that could be adjusted.
Hegemon65
Posts: 6
Joined: 2022-08-26 06:44:49

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

Post by Hegemon65 »

update 19.09.2024

Duration and genre are not collected :/
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 for the new version, but the posters download nicely, only the movie genre stopped downloading
cosanostra
Posts: 14
Joined: 2020-01-23 16:50:03

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

Post by cosanostra »

I also Thank You Very Much antp for fixing this and also for all the work on this project. I wish you a lot of health, that you will be with us a million years and one day longer :)))
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: 2024-09-19 13:00:54 In the end, as it was quite easy to do, I had a few minutes just now to do that, and it seems to work.
You can get version 3.2.21 via "update scripts" or from https://update.antp.be/amc/scripts/
It seems to work fine, at least for the few movies I tested :)
Images are converted to jpeg 92% quality, I don't know in term of size how that compares to the images that were previously provided by filmweb.
In case they are much smaller/bigger (in file size), that could be adjusted.
Hello. Could you fix it so that it takes the movie genre? Thanks
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 »

OK I'll check that, but as I said not sure this week I'll have time.
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 »

uprzedzam, że nie mam za bardzo wiedzy w skryptach i zrobiłem dwie poprawki analizując kod:

1. pobieranie gatunku (testowane na kilku filmach gdzie był jeden lub dwa gatunki) i raczej działa:

Code: Select all

	// Gatunek
	Line := TextBetween(Page.Text, '<div class="filmPosterSection__buttons tags-container"', '</div>');
	if Length(Line) > 0 then
	begin
		case GetOption('SeparatorGatunku') of
			0: Separator := ' / ';
			1: Separator := ', ';
			2: Separator := '/';
		end;
		Value := '';
		while Pos('/ranking/film', Line) > 0 do
		begin
			Line2 := TextBetween(Line, '/ranking/film', '/a>');
			Line := RemainingText;
			Line2 := TextBetween(Line2, 'itemprop="genre">', '<');
			Value := Value + Line2 + Separator;
		end;
		Value := Copy(Value, 1, Length(Value) - Length(Separator));
		Value := StringReplace(Value, ', ', Separator);
		UniToPol(Value);
		if Length(Value) > 0 then
			SetField(fieldCategory, Trim(Value));
	end;
2. ilość głosów pobiera się teraz tak np. 3,9 tys.&nbsp;, przywróciłem to do stanu np. 3897

Code: Select all

	// Ratting filmweb
	Line := TextBetween(Page.Text, 'filmRating filmRating--filmRate 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, ' data-count="', '">');
		if Length(Value) > 0 then
			SetCustomField('VotesFilmweb', Trim(Value));
	end;

Uprzedzam, że może to nie działać ze wszystkimi filmami dobrze bo nie testowałem tego na dużą skalę. Dodatkowo mogę stwierdzić, że raczej jestem zielony w kodowaniu :D
kazeciak
Posts: 44
Joined: 2012-10-23 05:17:49

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

Post by kazeciak »

Master_Rafael wrote: 2024-09-24 12:09:05 Uprzedzam, że może to nie działać ze wszystkimi filmami dobrze bo nie testowałem tego na dużą skalę. Dodatkowo mogę stwierdzić, że raczej jestem zielony w kodowaniu :D
Też chciałbym być taki zielony w kodowaniu :) Działa jak należy na nowych i starych filmach :)
Dzięki i pozdrawiam
wrobelp
Posts: 45
Joined: 2011-07-10 18:59:53

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

Post by wrobelp »

Master_Rafael wrote: 2024-09-24 12:09:05
Uprzedzam, że może to nie działać ze wszystkimi filmami dobrze bo nie testowałem tego na dużą skalę. Dodatkowo mogę stwierdzić, że raczej jestem zielony w kodowaniu :D
Możesz dalej być tak zielony, jak jesteś w kodowaniu, skrypt działa jak ulał, wielkie dzięki :clapping: :clapping: :clapping:
Post Reply