Automatically Add .avi Extension to .mkv Files

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
praeix
Newbie
Newbie
Posts: 2
Joined: September 30th, 2012, 10:15 am

Automatically Add .avi Extension to .mkv Files

Post by praeix »

Hey all,

Kind of a noobish question, but I can't seem to find an answer on Google. I need to automate adding the .avi extension to my .mkv files that I download through Sabnzbd.

I have a Samsung LED Smart TV and am streaming media directly to it from a Windows 7 PC since I haven't built an HTPC yet. For whatever reason, Samsung Smart TV's will play MKV files, but only if you add the .avi extension to the end of the file. I'm currently using Sick Beard for grabbing TV shows and I'm manually downloading movies. I'm using Sick Beard's post-processing for the TV shows and no post-processing for the movies.

Does anyone know of a way to do this? Does it involve just writing a Windows script? The concept seems very simple and maybe my Google-fu is just broken, but I can't figure this out.

Thanks in advance!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Automatically Add .avi Extension to .mkv Files

Post by shypike »

Code: Select all

@echo off
cd /d %1
ren *.mkv *.avi
Put that in a file called mkv2avi.cmd and set that as a script
for the category dealing with those files.
praeix
Newbie
Newbie
Posts: 2
Joined: September 30th, 2012, 10:15 am

Re: Automatically Add .avi Extension to .mkv Files

Post by praeix »

Thanks a TON shypike! I added the script and set the default scripts folder, then set it in the categories and everything is working perfectly now.
Post Reply