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.

if directory has *file*, move directory

Featured Replies

Hi, im searching for a script (or idea)

 

im using currently

mv *img 

mv *iso

to mv it to watch folder.. any idea how i can also move the directory where the file is in to watch folder? (so that SAME_AS_SRC is working?)

 

any/dir/moviename/moviename.iso

 

->

 

 /watch/moviename/moviename.iso?

 

 

Thats my userscript atm:



#!/bin/bash
mv !*/_unpack/* /mnt/user/downloads/completed/Filme/*/*.[iI][mM][gG] /mnt/user/downloads/DVDR/
mv !*/_unpack/* /mnt/user/downloads/completed/Filme/*/*.[iI][sS][oO] /mnt/user/downloads/DVDR/

logger DVDRs verschoben.

 

find /mnt/user/downloads/DVDR/ -mtime 7 -delete

 

touch find /mnt/user/downloads/DVDR/touch
find /mnt/user/downloads/DVDR/* -type d -empty -exec rmdir {} \;
rm /mnt/user/downloads/DVDR/touch

 

logger DVDRs älter als eine Woche gelöscht.

 

Problem is that handbrake dont has the correct directory because its just /watch/filename instead of /watch/moviename/filename

Edited by nuhll

Archived

This topic is now archived and is closed to further replies.

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.