Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zacharyd3

Members
  • Joined

  1. You put your cron setup in the text box. As for the scheduled times, you can get a plugin to set the "Daily" time yourself. I'm at work at the moment so I can't remember what it's called but I'm pretty sure it's a dynamix plugin and then you get a new settings page under the scheduler to adjust it. I've got my "daily" tasks setup to run at 6:30pm everyday and it work flawlessly. Edit: Yup it's dynamix that has the scheduler
  2. Checkout this link to easily use cron: https://crontab.guru/ Edit: This is what you would want to use if you want it to run everynight at 5:45am: 45 5 * * *
  3. Actually, Disregard the code I just sent, you can actually take out one line for the media variable, as I never ended up needing it, haha. This should work just fine: #!/bin/bash debug=1 #Change this to 1 for more logging, 0 for less #Start with a clear screen clear #Set working directories output=/mnt/user/DownloadsPP/ #Change this to your handbrake output directory movies=/mnt/cache/Media/Movies/ #This should be your movies directory series=/mnt/cache/Media/TV/ #This should be your series directory #Search the output directory for new media find $output -type f | while read file do #Parse the movie name from the filename movieParsed0=$(echo "$file" | cut -d'.' -f1) movieParsed1=$(echo "$movieParsed0" | cut -d'/' -f7) #Lower or raise the number in f9 until "Movie parsed to:" shows just the movie name. if [ $debug -eq "1" ] then echo "Full filename: "$file fi #Check if the file is a movie movieFolder=$movies$movieParsed1 if [ -d "${movieFolder}" ] then if [ $debug -eq "1" ] then echo "Movie parsed to: "$movieParsed1 echo "Movie Folder: "$movieFolder fi #Move any found files #mv "${file}" "${movieFolder}"; echo $movieParsed1" Moved" #Once all the outputs look correct, remove the "#" else seriesParsed0=$(echo "$file" | cut -d'.' -f1) seriesParsed1=$(echo "$seriesParsed0" | cut -d'/' -f6) #Lower or raise the number in f8 until "Series parsed to:" shows just the movie name. seasonParsed0=$(echo "$seriesParsed0" | cut -d'/' -f7) #Change f9 to one higher than the previous line episodeParsed0=$(echo "$seriesParsed0" | cut -d'/' -f8) #Change f10 to one higher than the previous line seriesFull=$series$seriesParsed1/$seasonParsed0 if [ -d "${seriesFull}" ] then if [ $debug -eq "1" ] then echo "Series parsed to: "$seriesParsed1 echo "Season parsed to: "$seasonParsed0 echo "Series Folder: "$seriesFull fi #mv "${file}" "${seriesFull}"; echo $seriesParsed1" Moved" #Once all the outputs look correct, remove the "#" fi fi echo "" done
  4. Yea if you can get it to include the folders then it should be really easy to setup. If you can get handbrake to output the files into the original folder structure like you're saying you can easily get it to copy them back by just changing the "/downloads/" to "mnt/cache/media/" It's a tad busy at work rn but if I don't have time to set it up, I'll get a rough draft setup tonight and send it your way.
  5. Ok, so this should work specifically for movies, TV will still need some work. The only issue I see coming up is if there is a TV show episode that has a title that matches a movie name, however if your shows are stored like "/Shameless/Season 1/S01E01 - show title.mkv" then you shouldn't have to worry because the season and episode in the title will never match a movie. You'll also want to go through the code below and edit some values to match your system. I left notes on the right side as to what to change, but basically, make sure the variables match your system and then run the script and it should spit out matching files. As long as it matches and everything looks right, then remove the # on the 4th last line and it will actually move stuff. #!/bin/bash #Start with a clear screen clear #Set working directories output=/mnt/cache/Media/Output/ #Change this to your handbrake output directory media=/mnt/cache/Media/ #This should be your media directory movies=/mnt/cache/Media/Movies/ #This should be your movies directory #Search the output directory for new media for file in $output* do #Parse the movie name from the filename parsedName0=$(echo "$file" | cut -d'.' -f1) parsedName1=$(echo "$parsedName0" | cut -d'/' -f7) #Lower or raise the number in f7 until "File parsed to:" shows just the movie name. echo "File parsed to: "$parsedName1 #Check if the file is a movie movieFolder=$movies$parsedName1 if [ -d "${movieFolder}" ] then echo "Movie Folder: "$movieFolder #Move any found files #mv "${file}" "${movieFolder}"; echo "Files Moved" #Once all the outputs look correct, remove the "#" fi echo "" done
  6. See, for movies it would be easy because you can just parse the filename and move it to the matching folder, but TV makes it a bit more difficult because the episodes more than likely wont have the show name in the title. As for how to get Radarr or Sonarr to search for them, I'd look at the api and see if there is a way to make it work. I can write something up for movies to get that moved to the proper folder, but TV might take a sec. Granted, there might be someone else on here with more knowledge than I that would be able to get it done easily, haha.
  7. Ok, so I'm assuming your directories are set up something like /mnt/cache/Media/TV/Shameless/Season 1/episode goes here.mkv You would then need to parse the filename so try and figure out where it should be stored, otherwise, if you had radarr and sonarr setup then you can always just copy the files back to the download directory of either of those programs and let it import them again. If you could post your naming scheme I can see if there is any way I can think of to try to parse the file and move it to the proper folder automatically. I'm also not familiar with how Handbrake outputs the file, does it output it back into a folder like it was originally (ie. /mnt/cache/HandbrakeOutput/Shameless/Season 1/episode.mkv), or does it just spit out the file (ie. /mnt/cache/HanebrakeOutput/episode.mkv)? Obviously enough, if it spits out the whole folder it would make things exponentially easier, but if not, I'm sure we can find a way to get it done. Also, just know I'm no expert, I'm all self taught when it comes to bash and scripting but I can usually make stuff work. That being said, I am also at work so I may not reply asap but I'd be willing to help where I can 😄
  8. How is your media stored in /mnt/cache/Media/ ? is it all just thrown in the folder because if so, that will be an easy task to accomplish. All you'd need to do is change the line that says "output=/mnt/cache/output/" to wherever Handbrake outputs it's files to. This will then move any files from that directory to your media directory. #!/bin/bash #Set working directories output=/mnt/cache/output/ media=/mnt/cache/Media/ cd $output #Search the output directory for new media for file in $output* do #Move any new files from the output directory back to the storage directory mv $file $media done EDIT: I just thought of another, albeit slight issue. If Handbrake puts the file there while it's still in progress, it'll try and move incomplete files; so to get around this, I'd suggest setting this script to run on either a custom cron job or daily. This would mean a smaller chance of catching half-complete files.
  9. I just tossed a 1050Ti into my server to see if I could get this working, and after running the script (with the right container name) it doesn't seem to be working. It shows that it's encoding, but the decoding still sits at 0% and I'm not sure why. Nevermind, I seem to have found out why. It looks like this script only works on version 1.15+ and I'm just running 1.14 so I need to wait until the alpha is pushed to the main channel before it will work.
  10. As of today I'm suddenly unable to use this. I keep getting an error "No OpenVPN config file located in /config/openvpn/ (ovpn extension), please download from your VPN provider and then restart this container, exiting..." however, nothing has changed, just overnight it has stopped working. I double checked and the config files are still there, and if I edit the docker to add a path to /config/openvpn/ directly to the files it still shows they aren't there. I'm wondering if there was an update that may have broken a link somehow?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.