NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) SearchWiz & MovieWiz v
« Previous 1 2 3 4 5 … 16 Next »
Wizmetadatagrabber can't find info in some cases

 
  • 0 Vote(s) - 0 Average
Wizmetadatagrabber can't find info in some cases
7ore
Offline

Senior Member

Posts: 598
Threads: 68
Joined: Mar 2006
#1
2009-10-22, 05:58 PM
I have tried to solve this problem in a couple of ways, but I havn't found a reliable solution yet.

Problem is that the search functionality on thetvdb could have been better.
Example: I have downloaded the Castle show. But when wizmetadatagrabber do a search I get data from an old show about different castles around Britain(?). The problem originates in the fact that the files is named as: castle.2009.S01E01.yadayada.avi. Usually I use the Command-line tool, but if I search manually, I can rename the title to: Castle.(2009)... and voíla I get correct info.

I have tried to create some script that renames the files automatically. but I have not found one that can handle the "()" (or something).

Is there someone that knows how to create a script that can handle renaming like this? Python, perl or dos. And that I can use for other files as well.

Or: maybe a xml-file that wizmetadatagrabber reads and use for the search (the renaming of files is just to get correct data, anyway)
the xml-file could have either the correct name or the tvdb show Id (83462 for Castle). Roughly like the language translation xml...
No real need for a UI to edit this.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2009-10-23, 04:18 PM
How are you coming up with that name? Are you using a renaming tool?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#3
2009-10-24, 06:51 AM
You might try vbscript. I'm not a vbscript programmer, but I cobbled together this script that may get you started.

Paste into a text file and name appropriately (? maybe FileRenamer.vbs).
Save it.

Call it as follows:

cscript FileRenamer.vbs //nologo castle.2009.S01E01.yadayada.avi

Where the filename is the one you want renamed. It will take any .2009. (or current year), and replace with ' (2009).' (no quotes).

So
castle.2009.S01E01.yadayada.avi
becomes
castle (2009).S01E01.yadayada.avi

Code:
Option Explicit
    Dim objFS
Dim strFileName
Dim strYear
Dim strTokenYear
Dim strNewFileName
Dim resp
Wscript.Echo ""
If Wscript.Arguments.Count <> 1 Then
  Wscript.Echo "  Invalid Syntax: Expecting 1 parameter (filename)"
else
  Set objFS = CreateObject("Scripting.FileSystemObject")
  strFileName = Wscript.Arguments(0)
  If Not objFS.FileExists(strFileName) Then
   Wscript.Echo "  ERROR: " & strFileName & " does not exist."
   Wscript.Quit
  End If
  'MsgBox("Input File: " + strFileName)

  strYear=Year(Date)
  strTokenYear = "." & strYear & "."
  'MsgBox("tokenYear: " + strTokenYear)

  If InStr(strFileName, strTokenYear) > 0 Then
   strNewFileName = Replace(strFileName, strTokenYear, " (" & strYear & ").")
   '-- BEGIN SECTION 1 Uncomment this section to make interactive --
   'resp = MsgBox("Rename File" & Chr(13) & _
   '          "From: " & Chr(13) & strFileName & Chr(13) & _
   '          "To:" & Chr(13) &  strNewFileName, 1, "File Rename?")
   'If resp = 1 Then
   ' objFS.MoveFile strFileName, strNewFileName
   'End If
   '-- END SECTION 1 Uncomment this section to make interactive --

   '-- BEGIN SECTION 2 Console Section --
   Wscript.Echo "Renaming input file: " & strFileName
   Wscript.Echo "                 to: " & strNewFileName
   objSF.MoveFile strFileName, strNewFileName
   Wscript.Echo "Rename complete."
   '-- END SECTION 2 Console Section --
  End If
End If
7ore
Offline

Senior Member

Posts: 598
Threads: 68
Joined: Mar 2006
#4
2009-10-24, 01:05 PM (This post was last modified: 2009-10-24, 03:29 PM by 7ore.)
Thanks!
That script did the work nicely. I created a .bat with one line:
cscript FileRenamer.vbs //nologo castle.2009*
So I'll run it right before the start of Wizmetadatagrabber...


Quote:How are you coming up with that name? Are you using a renaming tool?
I download my shows, so I don't use any renaming tools.

I did take a look at your tool a long time ago, but it seemed to be designed to rename shows recorded in GBpvr.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  WizMetadataGrabber: wishlist ACTCMS 24 18,512 2010-03-07, 08:29 PM
Last Post: Mike S
  During info load, 'Missing DLL, vjslib.dll' mkenyon2 1 2,597 2010-01-19, 05:11 PM
Last Post: McBainUK
  Wizmetadatagrabber won't get any info 7ore 7 4,165 2010-01-13, 04:34 AM
Last Post: 7ore
  WizMetadataGrabber - Use episode as local title rather than series/episode jwb5463 6 2,892 2010-01-09, 03:41 AM
Last Post: JavaWiz
  WizMetadataGrabber - can it be told to try to ignore '.' psycik 7 3,658 2009-12-20, 05:32 PM
Last Post: JavaWiz
  No Console Setting for WizMetadataGrabber JavaWiz 5 2,894 2009-11-24, 02:22 PM
Last Post: fla
  WizMetadataGrabber - hyphens jwb5463 6 3,360 2009-11-03, 12:45 PM
Last Post: 7ore
  WizMetadataGrabber standalone? hick 5 3,233 2009-10-26, 03:46 AM
Last Post: JavaWiz
  WizMetadataGrabber first use McBainUK 1 1,863 2009-10-20, 05:14 AM
Last Post: JavaWiz
  Wizmetadatagrabber Wish for subtitle download 7ore 2 2,622 2009-08-28, 12:53 PM
Last Post: 7ore

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode