Issue Details (XML | Word | Printable)

Key: FLM-47
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Borys Musielak
Reporter: Borys Musielak
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Filmaster

Import ratings from Filmweb

Created: 05/Apr/09 05:50 PM   Updated: 11/Dec/11 10:27 PM
Component/s: Fetchers
Affects Version/s: 1.0.2
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

File Attachments: 1. File filmweb2criticker.py (2 kB)
2. Zip Archive import_ratings.zip (8 kB)
3. File newfilmweb2criticker.py (2 kB)

Issue Links:
Similar
 


 Description  « Hide
Implement ratings import from Filmweb similar to those from IMDB and Criticker. Use Criticker XML format.

Film votes on Filmweb can be found here: http://www.filmweb.pl/user/<number>/filmVotes

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Borys Musielak added a comment - 27/Apr/09 11:09 PM
TODO: Integrate bolo's code into Filmaster.

Borys Musielak added a comment - 03/Jul/09 11:46 PM
Opis idealnego algorytmu by poczciwy:

Na początku podajemy nick z filmweb.pl
1) w nicku z fw zmieniamy wszystkie znaki niealfanumeryczne na podkreślenie, przykład: jan K. owalski -> jan_K__owalski
2) otwieramy stronę użytkownika: http://www.filmweb.pl/user/[zmieniona_nazwa_użytkownika]
3) na stronie użytkownika szukamy ciągu: "/UserFavoritePersons?id=[numer_użytkownika]"
4) na stronie: http://www.filmweb.pl/splitString/user/[numer_użytkownika]/filmVotes (dla seriali: http://www.filmweb.pl/splitString/user/[numer_użytkownika]/seriesVotes)
od siódmego \a zaczynają się filmy w formacie:
\a[numer_filmu]\c[tytuł_oryginalny]\c[tytuł_polski (gdy nic -> tytuł polski jest taki sam jak oryginalny)]\c[rok]\c[ulubiony (0 - nie; 1 - tak)]\c[ocena]\c[adres_miniaturki_plakatu]\c[kod_kraju]\e[kod_następnego_kraju(opcjonalny, może być klka)\c[kod_gatunku]\e[kod_następnego_gatunku(opcjonalny, może być klka)\c[data_ocenienia: RRRRMMDD lub nic (brak oznacza, że film oceniono przed 20.10.2007)]

gdy brak ocenionych filmów, to \a występuje tylko 6 razy, przykład:
http://gfx.filmweb.pl/po\a\a\a\a\a\a


Przykład:
\a9225\cRomper Stomper\c\c1992\c1\c10\c/92/25/9225/7246834.0.jpg\c3\c6\e28\c20090604
tytuł oryginalny: Romper Stomper
tytuł polski: Romper Stomper
rok: 1992
ulubiony: tak
ocena: 10/10
miniaturka plakatu: http://gfx.filmweb.pl/po/92/25/9225/7246834.0.jpg
kod kraju: 3
kod gatunku: 6
             28
data oceny: 4 kwietnia 2009

Maciej Żok added a comment - 06/Jul/09 04:44 PM
W tym algorytmie 2 pierwsze punkty są złe - strona użytkownika może mieć nazwę niezwiązaną z nickiem.

filmwebUrl = http://www.filmweb.pl/user/username
I hope it's working

Borys Musielak added a comment - 15/Feb/10 01:10 PM
This feature is important to our Polish users. Moved up on the priority ladder.

Borys Musielak added a comment - 19/Feb/10 02:11 AM

Borys Musielak added a comment - 21/Feb/10 01:40 AM
Implemented on dev in the following commits:

http://bitbucket.org/filmaster/filmaster-test/changeset/b134b8beeef6/
http://bitbucket.org/filmaster/filmaster-test/changeset/d51bee62ce81/
http://bitbucket.org/filmaster/filmaster-test/changeset/69bd38784a05/

TODO:
- pass the username instead of user ID in import form
- localize
- perhaps store filmweb id in database for further imports of same film

Adam Zieliński added a comment - 21/Feb/10 10:21 AM
"Monsieur Musielak, to both your family and your code I say: Bravo."

Borys Musielak added a comment - 07/Mar/10 09:28 PM
Implemented.

Borys Musielak added a comment - 08/Mar/10 10:54 PM
Filmweb imports are currently disabled as there was a change on Filmweb side thath requires us to do additional coding ( FLM-304 )
Still this piece of code is done, so the task can be closed.