Easy MQ3 questions.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kaffekask Offline
Senior Member
Posts: 200
Joined: Jul 2012
Reputation: 7
Location: Stockholm, Sweden
Post: #11
No, I'm not a programmer, I'm just a lazy Windows user (that has been working with computers and servers for almost 20 years...) and then you need to learn some scripting to solve all your little problems... Big Grin

But if you want to learn scripting today on Windows, go for Powershell.

Here is a script that removes the .BluRay for all .mkv files in alla sub directories, just like the other one, create a file with .bat extension in the directory and run it.
I forgot to say it an my first post, but you should always try on just one or two files that you've copied to a directory for testing.

Code:
@echo off
setlocal enabledelayedexpansion

for /f "tokens=*" %%m in ('dir /s /b *.BluRay.mkv') do (
    set nn=%%~nm
    set nn=!nn:.Bluray=!
    ren "%%m" "!nn!.mkv"
    )
find quote
Fennec Offline
Member
Posts: 63
Joined: May 2012
Reputation: 0
Post: #12
(2012-08-15 19:48)Vaikin Wrote:  http://www.therenamer.com/

Really good tool.

And no, you wouldn't have to rescrape. Once the files are renamed, just update the library(you'll then have duplicates) and then run the clean library function to remove non-existing files.

This is confusing...

Select "Movies" Press "C" "Update Library"

To me it seems like you are re-downloading/scraping all the information again? At least that's the way I understand it.

Why when you run "Update Library" does it say..

"Downloading Movie Information"
-Name of Movie
-Scanning for new content

It's checking themoviedb.org for the same content you've already downloaded... ?

I mean that's how I interpret it.. Why else would it prompt me with this message below...

"Unable to connect to remote server"
"Would you like to continue scanning" ?

It's connecting to themoviedb.org...

Also, why do I get that prompt occasionally?
find quote
Vaikin Offline
Fan
Posts: 420
Joined: Mar 2012
Reputation: 11
Location: Toronto, Canada
Post: #13
If you have nfos for the videos, you can have the updater load the movie information from them, saving you the time it takes to scrape them again. Unless you're renaming hundreds of movies, scraping doesn't take long. Scraping just queries themoviedb.org and returns data that makes the nfo file, which is usually a few kb. No images are returned.

By renaming the files with BluRay you're essentially trying to make xbmc recognize them as BluRay files. The only way to get xbmc to do that is to have it update the library, after you renamed the files.

This simply means that the server is offline/having a few issues. They are usually resolved quite quickly.
Code:
"Unable to connect to remote server"
"Would you like to continue scanning" ?
find quote
Fennec Offline
Member
Posts: 63
Joined: May 2012
Reputation: 0
Post: #14
I notice that some movies do not have more than 1 piece of fanart
on the themoviedb.org. Some don't have any at all.

So when you are using Showcase view > Style > Extra Thumbnails
Only 1 or none of 4 thumbnail windows will be taken up with an image.

Is there a way to use other movie databases to scrape the fanart for just
these select movies?
find quote
donkey33 Offline
Junior Member
Posts: 29
Joined: Mar 2011
Reputation: 0
Post: #15
Thanks kaffekask. That helped me also. Once I can't figure out is this as I need to change a .jpg file name but only one and with multiple.jpg files, I'm not sure how to go about it.

In my folder is this.

Contraband (2012)-fanart.jpg
background.jpg
background1.jpg
background2.jpg

I need the first file to match this.

Contraband (2012).Bluray-fanart.jpg

So I had this thinking it would work.

Code:
for /f "tokens=*" %%m in ('dir /s /b *-fanart.jpg') do ren "%%m"  "%%~nm.BluRay%%~xm"

and it worked by only affecting the fanart.jpg file but all it did was this and added it to the end.

Contraband (2012)-fanart.BluRay.jpg

Is there a way I can add it in between the closing bracket and the dash and what would the code be to remove that?

Thanks
find quote
Vaikin Offline
Fan
Posts: 420
Joined: Mar 2012
Reputation: 11
Location: Toronto, Canada
Post: #16
Not sure. Artwork Downloader get's different pieces of art from different places but, if there's no art then there's no art. Only thing you could do would be to add in more providers for it to check(I dunno any good ones) or just manually download art yourself and place them accordingly.

If I'm not mistaken, things like extrathumbs, the name doesn't matter. Just get some piece of art and throw it in the folder and it should be loaded.

P.S.
I could be wrong, I'm really not sure Wink

Edit: Apparently, you just name them: "thumb1" or "thumb2" etc.
(2012-08-26 13:51)Fennec Wrote:  I notice that some movies do not have more than 1 piece of fanart
on the themoviedb.org. Some don't have any at all.

So when you are using Showcase view > Style > Extra Thumbnails
Only 1 or none of 4 thumbnail windows will be taken up with an image.

Is there a way to use other movie databases to scrape the fanart for just
these select movies?
(This post was last modified: 2012-08-26 20:38 by Vaikin.)
find quote
kaffekask Offline
Senior Member
Posts: 200
Joined: Jul 2012
Reputation: 7
Location: Stockholm, Sweden
Post: #17
(2012-08-26 15:18)donkey33 Wrote:  Thanks kaffekask. That helped me also. Once I can't figure out is this as I need to change a .jpg file name but only one and with multiple.jpg files, I'm not sure how to go about it.

In my folder is this.

Contraband (2012)-fanart.jpg
background.jpg
background1.jpg
background2.jpg

I need the first file to match this.

Contraband (2012).Bluray-fanart.jpg

So I had this thinking it would work.

Code:
for /f "tokens=*" %%m in ('dir /s /b *-fanart.jpg') do ren "%%m"  "%%~nm.BluRay%%~xm"

and it worked by only affecting the fanart.jpg file but all it did was this and added it to the end.

Contraband (2012)-fanart.BluRay.jpg

Is there a way I can add it in between the closing bracket and the dash and what would the code be to remove that?

Thanks

I've not tested any of these scripts, so test them of a small groups of files first!

This should rename it:
Code:
@echo off
setlocal enabledelayedexpansion

for /f "tokens=*" %%m in ('dir /s /b *-fanart.jpg') do (
    set nn=%%~nm
    set nn=!nn:-fanart=.Bluray-fanart!
    ren "%%m" "!nn!%%~xm"
    )

To remove it:
Code:
@echo off
setlocal enabledelayedexpansion

for /f "tokens=*" %%m in ('dir /s /b *Bluray-fanart.jpg') do (
    set nn=%%~nm
    set nn=!nn:.Bluray-fanart=-fanart!
    ren "%%m" "!nn!%%~xm"
    )

The replace is done in this line:
set nn=!nn:-fanart=.Bluray-fanart!
Fisrt italic what to replace
Second what to replace it with.
find quote
Post Reply