A plugin to sort and move files

Status
Not open for further replies.

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Afternoon all,

I was wondering if there might be a plugin available for Freenas that could automate moving my files from a downloads folder, out to different dedicated folders; Movies, TV, Music etc?

If there isn't a plugin, what other solution might there be to achieve the same results?

cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Afternoon all,

I was wondering if there might be a plugin available for Freenas that could automate moving my files from a downloads folder, out to different dedicated folders; Movies, TV, Music etc?

If there isn't a plugin, what other solution might there be to achieve the same results?

cheers
That's what SickBeard/SickRage/Sonarr (TV) CouchPotato (Movies) and Headphones (Music) do. They usually initiate the download as well, but you can also just point them at files you manually downloaded and tell them to organize them for you.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Thanks Josh.

I also have my comics that will need moving. Mylar can deal with them once they are in the comics folder, but it won't be able to do anything until they are in that folder.

Would any of the afore mentioned applications also be able to move my comics, from my downloads folder? Or would they only deal with specific file formats, mp3 for Headphones, avi for Sickbeard etc?

I'm trying to implement a completely automated system

cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Josh.

I also have my comics that will need moving. Mylar can deal with them once they are in the comics folder, but it won't be able to do anything until they are in that folder.

Would any of the afore mentioned applications also be able to move my comics, from my downloads folder? Or would they only deal with specific file formats, mp3 for Headphones, avi for Sickbeard etc?

I'm trying to implement a completely automated system

cheers
I don't have any experience with Mylar. I personally just use Sabnzbd+Transmission+SickRage+CouchPotato+nzbToMedia and it is a completely automated system for TV&Movies.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Ok, gotcha,

So essentially are you saying, using the applications you mentioned, I can automagicaly redistribute my movies, music and TV shows to their respective homes on different volumes, however with comics I may be s**t out of luck if Mylar can't do it?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, gotcha,

So essentially are you saying, using the applications you mentioned, I can automagicaly redistribute my movies, music and TV shows to their respective homes on different volumes, however with comics I may be s**t out of luck if Mylar can't do it?
Here's what I know..
  • CouchPotato has a "Manual folder scan" feature where you point it to a directory of movies and it can re-organize it into your movie folder (this works best if movies are in seperate folders with NFO files)
  • SickRage has a feature where you can add TV Series folders (one at a time). You can then tell it to "rename" the seasons/episodes for a show according to your naming scheme.
  • What SickBeard/SickRage/Sonarr/CouchPotato/Headphones/Mylar are mostly designed to do is..
    1. watch for upcoming shows on usenet/torrents
    2. send them to a downloader (sabnzbd/transmission)
    3. then cleanup/organize/rename the downloaded files
I have never used Mylar so I don't know what it can do. There's also XDM, which has a comic plugin.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Thanks for all your help Josh,

I now have Couch Potato, Sick Rage and Headphones dealing with most of my media

I am having one small outstanding problem however. Because I only have one download folder (a folder synced between my Freenas box and my online Seedbox) I am having issues with certain applications grabbing their files from that one folder. Initially I had issues with Sick Rage moving my downloaded tv shows, because Couch Potato was using the folder, but I fixed that by ticking the 'skip remove detection' box in post processing. Mylar on the other hand, throws errors any time it is required to access the folder.

I seem to have hit a brick wall on this, as I can't work out another way to separate the files from the one location

Any thoughts?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you're using transmission? since CP and SR have transmission API support they can tell transmission to put completed downloads in a specific folder.

if you Google search for "jruehlig freenas" you can check my blog which details out how I do it. my system has no path conflicts and post-processing is done immediately thanks to 'nzbToMedia', my system doesn't scan for new files.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
No, I'm using an RUTorrent seedbox, hosted somewhere else. I use BTSync to sync my torrent files folder and my downloads folder between the two locations

I did take a quick look at your blog, but I wasn't sure whether it would apply to me, due to the way I have my system setup.

Firstly as you can see from screenshot 1, I have 3 separate physical volumes for my Films, TV and Music. All my plugins are contained within the Film volume

I have my downloads folder, sat on my TV volume, with all of the necessary jails pointing to it

My seedbox has a single download folder, that I can sync via BTSync to my Freenas box

Do you see my problem? Or am I making this a problem for myself?



PS. I noticed Sick Rage fails to update. Is this a known problem? Is it possible to manually update Couch Potato, Sick Rage, Headphones and Mylar? Or do I need to wait for an official update via Feenas?

Cheers
 

Attachments

  • Freenas 1.jpg
    Freenas 1.jpg
    291.3 KB · Views: 388

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
sorry, I don't really know anything about rutorrent. you could probably get your system running properly, but if not the method I present is verified and vetted to work.

yeah, you usually clone the scripts from github, then install Python to run them. but I don't know if they could integrate into your setup, transmission triggers running them but I don't know if rutorrent can do something similar
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Hmm, that is frustrating. For a moment there, I was kind of hoping that NZBtomedia might be the answer, but from what you say, it sounds like it necessitates the files being downloaded localy. Did I understand that correctly?

I have nearly got it all working, but my last issues seem to be with Mylar and Headphones, as they only give the option to move files to the download folder and not copy them, resulting in errors. Couch potato and Sick Rage have no such problems

How simple is it to update these apps Josh? The developer of Mylar told me has made some handy changes to the development branch, but I am currently on the master. Also Sick Rage throws an error if I attempt to update

cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm, that is frustrating. For a moment there, I was kind of hoping that NZBtomedia might be the answer, but from what you say, it sounds like it necessitates the files being downloaded localy. Did I understand that correctly?

I have nearly got it all working, but my last issues seem to be with Mylar and Headphones, as they only give the option to move files to the download folder and not copy them, resulting in errors. Couch potato and Sick Rage have no such problems

How simple is it to update these apps Josh? The developer of Mylar told me has made some handy changes to the development branch, but I am currently on the master. Also Sick Rage throws an error if I attempt to update

cheers
you should be able to update them through their respective webui. sickrage should update, I'll check if my sickrage doesn't update. If it's not working for you I can list a few commands that should fix it.

to switch branches would take a few commands. basically install git, replace the mylar source by cloning or from github, and change branches.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Sorry Josh,

I'm a complete newbie when it comes to this. Learning fast, but not quite fast enough ;)

If you could break down the process of switching branches for me, that would be really appreciated
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
as for sickrage, what does Config > Help & Info give you? I currently have the latest version starting with 401cb66

as for mylar you basically would..
service mylar stop
Code:
pkg install git
rm -r /usr/pbi/mylar-amd64/share/mylar/mylar
git clone git://github.com/evilhero/mylar.git /usr/pbi/mylar-amd64/share/mylar/mylar
git checkout development
chown -R media:media /usr/pbi/mylar-amd64/share/mylar/mylar
service mylar start
 
Last edited:

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Sorry, I think the problem with Sick Rage came because I accidentally changed to the development branch under general settings. It is working fine now and appears to be the same version you are running.

As far as Mylar goes, if you could give me a little extra help with the code I would be hugely appreciative

I don't want to completely mess it all up

Thanks again
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry, I think the problem with Sick Rage came because I accidentally changed to the development branch under general settings. It is working fine now and appears to be the same version you are running.

As far as Mylar goes, if you could give me a little extra help with the code I would be hugely appreciative

I don't want to completely mess it all up

Thanks again
the code above should be ready now
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
When I enter this line: 'delete /usr/pbi/mylar-amd64/share/mylar/mylar'

I get 'delete: command not found'

EDIT: Sorry, I was posting at the same time as you :)

Do I need to edit anything in your code to fit my config? Or is it generic?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
When I enter this line: 'delete /usr/pbi/mylar-amd64/share/mylar/mylar'

I get 'delete: command not found'
that wasn't code, I didn't put it in code blocks. that was a description of what to do.
 
Status
Not open for further replies.
Top