#1 2007-03-27 22:14:11
- Creap
- New member
- Registered: 2007-03-27
- Posts: 5
Filmtipset.se plugin help
Hi.
The only coding experience I have is some PHP, but I tried to start some hacking on a plugin for a really great Swedish movie database called Filmtipset. I didn't get far though.
Basically, I've managed GCstar to grab a list of the search results, with title & year, but then I can't get it to save any info. It would be awesome if someone could help me out. This is what I've done so far, by editing the discshop plugin:
Code:
sub start { my ($self, $tagname, $attr, $attrseq, $origtext) = @_; $self->{inside}->{$tagname}++; if ($self->{parsingList}) { return if $self->{parsingEnded}; if (($tagname eq 'a') && ($attr->{href} =~ /film\//) && ($attr->{class} eq 'no_change')) { $self->{isMovie} = 1; $self->{itemIdx}++; $self->{itemsList}[$self->{itemIdx}]->{url} = $attr->{href}; my $info = $attr->{title}; if ($info =~ /(.*)\(([0-9]{4})\)$/) { $self->{itemsList}[$self->{itemIdx}]->{title} = $1; $self->{itemsList}[$self->{itemIdx}]->{date} = $2; } } } }
Code:
sub getSearchUrl { my ($self, $word) = @_; return "http://www.filmtipset.se/search.cgi?field=name&search_value=$word"; }
Maybe someone can pick up where I started (or redo everything since I suck...)?
Here are some translations that might be needed if you don't speak Swedish:
Regissör = Director
Utgivningsår = Release year
Skådespelare = Actors
Manus = Script / Writing
Nyckelord = Keyword / Genre
Längd = Length / Playtime
Produktionsland = Country
Filmnummer = Movie ID
Filmtipset is user contributed which means there's more - and more maintained - info than at discshop or other Swedish sites. They have info about any movies you can get in Sweden, not like discshop where they only list the ones they have in stock.
Offline
#2 2007-03-29 12:29:42
Re: Filmtipset.se plugin help
Hello,
It would be easier if you would attach the whole plugin to this topic. You may do this with the field under the area where you enter your text.
I am not sure I will have time for this right now, so I hope someone else will.
Offline
#3 2007-04-10 17:41:11
- Creap
- New member
- Registered: 2007-03-27
- Posts: 5
Re: Filmtipset.se plugin help
So, here's the file I started on. Perhaps you could add this site request to the official thread too?
Thanks,
Creap
Offline
#4 2007-04-12 06:53:11
Re: Filmtipset.se plugin help
I added it to the topic. I hope I will have some time to have a look on it soon.
Offline
Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.