VrokSub 1.10 UPDATED
Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSubtitles.org Forum Index // Programs using OS
View previous topic :: View next topic  
Author Message
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Sat Mar 15, 2008 12:39 am    Post subject: VrokSub 1.10 UPDATED Reply with quote

This command line program will automatically download subtitles for your movies, rename your movies using a customized format, create folders for your movies and download imdb covers and details. You just pass a folder path and a preferred language list and it searches for subtitles using your avi files. It uses opensubtitles for the search and it requires the .net 2 framework runtimes which you probably already have. More details here: VrokSub


Last edited by Vrokolos on Thu Apr 03, 2008 6:04 pm; edited 5 times in total
Back to top
View user's profile Send private message
os
Site Admin


Joined: 25 Feb 2006
Posts: 1229

PostPosted: Sat Mar 15, 2008 12:53 am    Post subject: Reply with quote
hi, good start. I tried it, but I get:
Code:

Unhandled Exception: CookComputing.XmlRpc.XmlRpcTypeMismatchException: response
contains boolean value where array expected [response : struct mapped to type su
brt : member data mapped to type subRes[]]
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseBoolean(XmlNode node, Type Valu
eType, ParseStack parseStack, MappingAction mappingAction)
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseValue(XmlNode node, Type ValueT
ype, ParseStack parseStack, MappingAction mappingAction, Type& ParsedType, Type&
 ParsedArrayType)
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseValue(XmlNode node, Type ValueT
ype, ParseStack parseStack, MappingAction mappingAction)
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseStruct(XmlNode node, Type value
Type, ParseStack parseStack, MappingAction mappingAction)
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseValue(XmlNode node, Type ValueT
ype, ParseStack parseStack, MappingAction mappingAction, Type& ParsedType, Type&
 ParsedArrayType)
   at CookComputing.XmlRpc.XmlRpcSerializer.ParseValue(XmlNode node, Type ValueT
ype, ParseStack parseStack, MappingAction mappingAction)
   at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument xdoc
, Type returnType)
   at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm, Type
 svcType)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest req,
WebResponse webResp, Stream respStm, Type returnType)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodI
nfo mi, Object[] parameters)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] P
arameters)
   at XmlRpcProxyadce72b3-3e64-45a7-9b34-f3c809db9614.SearchSubtitles(String , s
ubInfo[] )
   at OSDbClient.Program.Go(String FolderArg, String LangArg, Boolean overwrite,
 Boolean rename)
   at OSDbClient.Program.Main(String[] args)


(no subtitles should be found)

also it uses bad iso639 (ces for cs language). I have to fix some checking at my side too...[/code]
_________________
Support us

Back to top
View user's profile Send private message
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Sat Mar 15, 2008 1:57 am    Post subject: Reply with quote
what do you mean about the iso? Do you mean that "gr" doesn't belong in the iso? I just added it because we use it alot here in greece Smile
That error should be fixed in the new version I uploaded.
Back to top
View user's profile Send private message
os
Site Admin


Joined: 25 Feb 2006
Posts: 1229

PostPosted: Sat Mar 15, 2008 12:24 pm    Post subject: Reply with quote
I didnt write nothing about gr, also gr is incorrect iso for greek language:
http://www.loc.gov/standards/iso639-2/php/code_list.php

so, correct iso is el (Greek Modern), but ofcourse I understand, why you put there "gr" Smile

in last message I meant, for 'cs' it sents 'ces', where you got this iso from ???

It seems, I have to do an export, which iso codes OS use internal, coz using 2 iso codes for 1 language is bad idea at all.

also tel me know where I can download correct version.
_________________
Support us

Back to top
View user's profile Send private message
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Sat Mar 15, 2008 2:57 pm    Post subject: Reply with quote
This is my map table for the language codes. I didn't know which code you used for languages with two codes so I used both. I made it using these: http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes

theLangMap.Add(new langMap("cs", "cze,ces", "Czech"));
theLangMap.Add(new langMap("fi", "fin", "Finnish"));
theLangMap.Add(new langMap("tr", "tur", "Turkish"));
theLangMap.Add(new langMap("sv", "swe", "Swedish"));
theLangMap.Add(new langMap("sk", "slo,slk", "Slovak"));
theLangMap.Add(new langMap("bg", "bul", "Bulgarian"));
theLangMap.Add(new langMap("fr", "fre,fra", "French"));
theLangMap.Add(new langMap("ar", "ara", "Arabic"));
theLangMap.Add(new langMap("vi", "vie", "Vietnamese"));
theLangMap.Add(new langMap("sr", "scc,srp", "Serbian"));
theLangMap.Add(new langMap("mk", "mac,mkd", "FYROM"));
theLangMap.Add(new langMap("ko", "kor", "Korean"));
theLangMap.Add(new langMap("et", "est", "Estonian"));
theLangMap.Add(new langMap("zh", "chi,zho", "Chinese"));
theLangMap.Add(new langMap("hr", "scr,hrv", "Croatian"));
theLangMap.Add(new langMap("gl", "glg", "Galician"));
theLangMap.Add(new langMap("ja", "jpn", "Japanese"));
theLangMap.Add(new langMap("el,gr", "gre,ell", "Greek"));
theLangMap.Add(new langMap("en", "eng", "English"));
theLangMap.Add(new langMap("da", "dan", "Danish"));
theLangMap.Add(new langMap("de", "ger,deu", "German"));
theLangMap.Add(new langMap("he", "heb", "Hebrew"));
theLangMap.Add(new langMap("id", "ind", "Indonesian"));
theLangMap.Add(new langMap("it", "ita", "Italian"));
theLangMap.Add(new langMap("es", "spa", "Spanish"));
theLangMap.Add(new langMap("no", "nor", "Norwegian"));
theLangMap.Add(new langMap("nl", "dut,nld", "Dutch"));
theLangMap.Add(new langMap("pl", "pol", "Polish"));
theLangMap.Add(new langMap("fa", "per,fas", "Persian"));
theLangMap.Add(new langMap("hu", "hun", "Hungarian"));
theLangMap.Add(new langMap("pt", "por", "Portuguese"));
theLangMap.Add(new langMap("ro", "rum,ron", "Romanian"));
theLangMap.Add(new langMap("ru", "rus", "Russian"));

First post link will always be updated with newest versions. So you can grab it from there.
Back to top
View user's profile Send private message
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Sat Mar 15, 2008 4:20 pm    Post subject: Reply with quote
I've got a question for you all.. Is there any standard for having external tags on avi files or even internal tags that won't alter the movie hash when changed? I want to make it so it saves some details about the movies on the hard disk (like imdbid, title, year etc) but I don't know where to save that info so that players or media centers can use it.
Back to top
View user's profile Send private message
os
Site Admin


Joined: 25 Feb 2006
Posts: 1229

PostPosted: Tue Mar 18, 2008 8:52 pm    Post subject: Reply with quote
I think this affects hash, so it is not good idea Sad You can do it in VirtualDub for example, those tags are added at end of file, so Sad

Also for code table - I will publish it soon on TRAC or somewhere
_________________
Support us

Back to top
View user's profile Send private message
eduo



Joined: 10 Feb 2007
Posts: 441
Location: Information Technology

PostPosted: Wed Mar 26, 2008 11:36 pm    Post subject: Reply with quote
Use NFO files. They are almost a standard nowadays. I delete them but others may keep them.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Thu Mar 27, 2008 1:46 pm    Post subject: Reply with quote
eduo wrote:
Use NFO files. They are almost a standard nowadays. I delete them but others may keep them.


Do any media player-browser software read nfo files for the movie information?
Back to top
View user's profile Send private message
eduo



Joined: 10 Feb 2007
Posts: 441
Location: Information Technology

PostPosted: Thu Mar 27, 2008 8:03 pm    Post subject: Reply with quote
Some do. I use XBMC and it does.

The point is that's the only way to add information to a movie without affecting its hash, in a separate file.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Thu Apr 03, 2008 6:00 pm    Post subject: Reply with quote
New version (1.10) of vroksub released. I added a lot of features that have nothing to do with subtitles. It can now download covers and data from imdb and save it to a nfo file along with your movie. It can create folders for your movies, you can change the naming format for both the file renaming and folders. You can set an output path so that each movie with subtitle will be moved there and more. Get it on the first post link.
Back to top
View user's profile Send private message
eduo



Joined: 10 Feb 2007
Posts: 441
Location: Information Technology

PostPosted: Fri Apr 04, 2008 10:15 pm    Post subject: Reply with quote
It's funny. I'm also doing something very similar to this and started adding a lot of things you are also adding. I use my program and haven't released anything other than the subtitle download part as I was focusing more on TV series and OS still doesn't include the support for them. I'm waiting for that.

In the meantime I'm checking out APIs for a lot of other places, like tv.com, thetvdb.com, moviexml and others.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Vrokolos



Joined: 15 Mar 2008
Posts: 13

PostPosted: Sat Apr 05, 2008 7:58 am    Post subject: Reply with quote
heh.. I also need tv series support Smile And I've got one or two additional things on my mind.
Back to top
View user's profile Send private message
os
Site Admin


Joined: 25 Feb 2006
Posts: 1229

PostPosted: Tue Nov 18, 2008 10:16 am    Post subject: Reply with quote
Hi guys,

I am sorry, that TV series support is not ready Sad Whole problem is, I already had programmed 80% if not more of it, I also posted some screenshots, it was on dev server, but dev server was accidentaly deleted and ofcoz no backup Sad

So I have to program that from scratch, it is not extra-complicated (the most complicated part was convert all subtitles (also subtitle files) to movie episodes - I had this script, but it is gone too Sad...also downloading part was quite complicated).

Anyway, this TV series support is one of my priority, I am working on it.
_________________
Support us

Back to top
View user's profile Send private message
eduo



Joined: 10 Feb 2007
Posts: 441
Location: Information Technology

PostPosted: Tue Nov 18, 2008 10:55 am    Post subject: Reply with quote
Do you need help?

Once you have the identifier for tv episodes and the fields for it the only task left is matching existing subtitles to it.

Figuring out most of the subtitles for tv episodes is not hard.

-First you take all the generic ones, everything that had VTV or EZTV in the title. ALL of those are for tv episodes.

-Then for all those you process the names. TV Episodes are usually labelled in one of four or five schemes, so it's not hard. I pasted my grep routines elsewhere, if I recall correctly. There is a tool called tvrenamer.pl by Rob Meerman that does this as well.

-Once you have the above you can use those subtitles as seeds. You can tie them up to every movie hashes linked to it and from there tie up all subtitle hashes tied to any of these.

-The above would cover more than 80% of the database and would be pretty simple to code. If you find you can get whether an IMDB is a TV series then you're set to set all the hashes and subtitles for that IMDBID to belong to the TV series.

-Finally, you should use thetvdb's API if you want to get extra data for the tv episodes. IMDB really hasn't got any good tools for this and the IMDB processing libraries out there are pretty limited int his respect. thetvdb works for matching the episodes of the series to names and for getting imdb IDs for the episodes.
_________________
http://eduo.info/
OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux
My current episode processing work flow.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Post new topic   Reply to topic    OpenSubtitles.org Forum Index // Programs using OS All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001, 2002 phpBB Group