Page 27 of 34

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

Posted: 2021-06-20 14:56:34
by archibaldos
A skąd wziąć tą wersję, bo na oficjalnej stronie jest max 4.2.2.2?
Pozdrawiam

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

Posted: 2021-06-20 15:06:07
by antp
4.2.3 was a beta/test version published for testing some fixes.
You can find the files to replace in that archive:
http://update.antp.be/amc/beta/amc4231b.rar

cf these two threads for concerned changes
viewtopic.php?f=4&t=14552
viewtopic.php?f=4&t=8232

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

Posted: 2021-06-20 15:20:22
by archibaldos
Thanks very much :)

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

Posted: 2021-06-21 13:29:58
by qmksmoli
Hej

W wyszukiwaniu nie pokazuja się:
https://www.filmweb.pl/tvshow/The+Grand ... 016-769290
https://www.filmweb.pl/tvshow/Farma+Cla ... 021-875459
być może dlatego, że jest w kategorii programy (tvshows) - takie moje przypuszczenie.

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

Posted: 2021-06-21 23:13:06
by Dekert
Dodałem kategorie "program tv" do okna wyszukiwania.
A co do IMDb, to rzeczywiście czasami są problemy. Wygląda na to że powoli przestawiają się na nowy format strony :fire:

Filmweb (PL) 3.2.8
https://www.mediafire.com/file/hkbpvt5sjiyrxac

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

Posted: 2021-07-13 06:11:23
by admas
Przestał pobierać fotosy z filmu.

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

Posted: 2021-07-17 19:24:22
by athe
admas w linijce

Code: Select all

//Zdjęcia
	if ((Pos('/photos"><h2>Galeria', Page.Text) > 0) and (GetOption('Zdjecia') = 1) and (StrToInt(GetParam('IleZdjec'), 0) > 0)) then
	begin
zmień na

Code: Select all

//Zdjęcia
	if ((Pos('/photos"><h2>', Page.Text) > 0) and (GetOption('Zdjecia') = 1) and (StrToInt(GetParam('IleZdjec'), 0) > 0)) then
	begin
i będzie po kłopocie, pozdrawiam

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

Posted: 2021-07-19 12:36:47
by admas
Dzięki, działa :grinking:

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

Posted: 2021-09-06 11:48:48
by siweq
da sie w jakiś łatwy sposób naprawić ściąganie ocen z imdb?

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

Posted: 2021-09-08 08:41:12
by athe
Da się. Trzeba w części

Code: Select all

// Ocena z IMDb i ilość głosów
	Value := '';
	Line := TextBetween(Pagetmp, '<strong title="', '</a>');
	Value := TextBetween(Line, 'ratingValue">', '</span>');
	Value := StringReplace(Value, '.', ',');
	if Value <> '' then
	begin
zmienić na linie:

Code: Select all

// Ocena z IMDb i ilość głosów
	Value := '';
	Line := TextBetween(Pagetmp, 'aggregate-rating__score"', '/span>');
  	HTMLRemovetags(Line);
  	Value := TextAfter(Line, '>');
  	Value := StringReplace(Value, '.', ',');
	if Value <> '' then
	begin
Pozdrawiam

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

Posted: 2021-09-08 09:07:41
by siweq
Super, działa! A to samo dla ilości głosów? :)

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

Posted: 2021-09-08 13:52:33
by athe
Zaproponuję inne rozwiązanie. Sądzę, że te będzie szybsze, na czym zależało koledze Dekert. Część skryptu dotycząca oceny i ilości głosów z IMdB powinna wyglądać tak:

Code: Select all

 // Ocena z IMDb i ilość głosów
 Value := '';
	Line := TextBetween(Pagetmp, '"aggregateRating":{', '"datePublished"');
	if CanSetCustomField('VotesIMDB') then
	begin
		Value := TextBetween(Line, 'ratingCount":', ',');
		Value := StringReplace(Value, ',', '');
		if Value <> '' then
			SetCustomField('VotesIMDB', Trim(Value));
	end;
	
  Value := TextBefore(Line, '},"', ':');
	Value := StringReplace(Value, '.', ',');
	if Value <> '' then
	begin
		if CanSetCustomField('RatingIMDb') then
			SetCustomField('RatingIMDb', Trim(Value));
		if (((GetOption('PobierzzIMDb') = 1) or  (GetOption('PobierzzIMDb') = 4) or  (GetOption('PobierzzIMDb') = 5)) and
			(not CustomFieldExists('RatingIMDb')) and CanSetField(fieldRating)) then
			SetField(fieldRating, Trim(Value));
	end;
Jak zauważyliście zmieniona jest kolejność pobieranych informacji, najpierw ilość głosów a potem ocena.

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

Posted: 2021-09-12 19:25:15
by Dekert
Dzięki athe, dodałem twoje poprawki oraz parę innych związanych z imdb.

Filmweb (PL) 3.2.9
https://www.mediafire.com/file/v849cp1yvc6g2tb

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

Posted: 2021-12-25 23:27:34
by tomlee
Cześć, wiem ze troche nie na temat ale szukam juz jakis czas i nic nie znalazlem, jak zrobic aby w szablonie wyswietlaly sie zdjecia aktorow i druga sprawa czy musi pobierac do kazdego filmu aktorow? bo w ten sposob mam mase zdjec tego samego aktora

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

Posted: 2022-03-16 11:57:29
by qmksmoli
Hej

Wtyczka pobiera prawidłowo listę propozycji do danego tytułu z której można wybrać konkretną pozycję. Jednak jak już wszystko jest załadowane to do AMC nie lądują nazwy oryginalna i polska. Przy pobieraniu seriali dodatkowo pojawia się błąd 404. Będzie jakaś szansa na naprawę? Pozdrawiam.

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

Posted: 2022-03-21 08:06:23
by kazeciak
Tak jak kolega wyżej, mógłby ktoś to poprawić? Dzięki

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

Posted: 2022-03-25 20:13:30
by jarko
Potwierdzam. Skrypt przestał pobierać tytuł oryginalny i polski, a także rok produkcji filmu.
Proszę o poprawienie. Dzięki.

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

Posted: 2022-04-07 10:08:24
by robinse
Niestety, coś się popsuło, help :cry:

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

Posted: 2022-04-15 16:21:36
by wrobelp
Nikt nic nie pomoże? Skrypt nie działa dalej.

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

Posted: 2022-04-17 03:55:17
by ads
Poprawiłem tytuły i rok, sprawdźcie, czy działa:

https://www.dropbox.com/s/vnz0mn99qcaah ... 9.ifs?dl=1