- Fejhallgató erősítő és DAC topik
- Azonnali fotós kérdések órája
- Milyen asztali (teljes vagy fél-) gépet vegyek?
- Nvidia GPU-k jövője - amit tudni vélünk
- Házi barkács, gányolás, tákolás, megdöbbentő gépek!
- HiFi műszaki szemmel - sztereó hangrendszerek
- Dual Mode-os IPS monitorral adott magáról életjelet a Gigabyte
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- Kormányok / autós szimulátorok topikja
- Milyen videókártyát?
-
PROHARDVER!
Xpenology Téma Összefoglaló
Új hozzászólás Aktív témák
-
Magnat
veterán
Ha arra gondolsz, h letöltés után automatikusan indexelje ami letöltött, akkor annyit tudok segíteni, h még vmelyik régebbi DSM verzióra találtam egy Perl scriptet ami elvileg megoldja, de nem volt az igazi (alkönyvtárat nem indexelt) és ezért belekendácsoltam pár plusz sort és így működött, de aztán vmelyik update kiütötte ... őszintén szólva sosem mentem utána, h miért, ha gondolod, tegyél vele egy próbát, lehet,h csak a Transmission írta felül a konfig filet amiben be volt állítva a script hívása letöltés után. A Synology topikban írtam róla bővebben: [link]
Kell tehát egy script update-syno.sh néven:
#!/usr/bin/perl
#
# Synology Media Indexer
#
# The Synology's synoindexd service will only index files if those have been copied to the media
# directory via FTP, SMB, AFP. If you move or copy media files via Telnet/SSH, the indexer is not
# aware of those, and you would have to manually reindex (which is time-consuming).
#
# This script will scan the video directory for modified files over the last two days and will then
# query the synoindex-service if the file was already indexed. If the file does not exist in the index
# database, the script will manually add it for immediate indexing.
#
# The logging component is handy, if you want to monitor when files are indexed and possibly tune your
# cronjob settings. I run the script in a cronjob every 10 minutes, which will then result in little
# overhead.
#
# I have included my most common media types in the script, but if I missed something, you are welcome
# to extend the script (and let me know what types I have missed).
#
# Usage: perl update-syno.sh /volume1/video
#
# Or add to crontab:
# */10 * * * * root perl /volume1/Extensions/scripts/update-syno.sh /volume1/video
#
# DISCLAIMER:
#
# (C) 2010 by Gerd W. Naschenweng (Gerd@Naschenweng.info / http://www.naschenweng.info)
### Logging: Adjust the path below to the base-directory where you place the script (if you don't need logging, comment out)
use lib qw(/volume1/transmission/scripts);
use Logging::Log;
@include_files = ("ASF","AVI","DIVX","IMG","ISO","M1V","M2P","M2T","M2TS","M2V",
"M4V","MKV","MOV","MP4","MPEG4","MPE","MPG","MPG4","MTS","QT","RM","TP","TRP","TS","VOB","WMV","XVID"
);
# message of synoindex indicating that file is not indexed
# for English this is: "Failed to get MediaInfo."
# You can get the message in your locale with the following command (execute as is): synoindex -g "myfile.test" -t video
my $SYNO_ERROR_MSG = "Failed to get MediaInfo.";
## Initialise logging (comment out if you don't need it - but then also comment out the relevant sections in the code below
my $log = Logging::Log->new();
my $log = Logging::Log->new(Handle => \*F);
my $log = Logging::Log->new(File => "/var/log/media-update.log", Mode => 'append');
# pass in number the directory to scan, this will be a recursive scan
my $scan_dir = shift;
if (!$scan_dir) {
$log->entry("No scanning directory passed, using /volume1/video");
$scan_dir="/volume1/video";
}
### Search for files which have changed during the last two days (adjust if necessary to shorter/longer intervals)
my @files = `find $scan_dir -type f -mtime -5`;
my $files_indexed = 0;
foreach (@files) {
my $file = $_;
chomp($file);
my $ext = ($file =~ m/([^.]+)$/)[0];
### Check if the file-name extension is a valid media file
if (grep {lc $_ eq lc $ext} @include_files) {
my $result = `synoindex -g \"$file\" -t video`;
chomp($result);
if ($result =~ m/^$SYNO_ERROR_MSG/i) {
$log->entry("Adding file to index: $file");
$dirname = substr($file, 0, rindex($file, '/') + 1);
my @synofolderrc = `synoindex -A \"$dirname\"`;
$log->entry("`synoindex -A \"$dirname\"`");
my @synorc = `synoindex -a \"$file\"`;
$log->entry("`synoindex -a \"$file\"`");
++$files_indexed;
}
}
}
if ($files_indexed) {
$log->entry("Synology Media Indexer added $files_indexed new media file(s)");
} else {
$log->entry("Synology Media Indexer did not find any new media");
}
# Close the log-file - remove/comment out if you disable logging
$log->close;Aztán egy reindex nevű script azokkal a könyvtárakkal amit indexelni akarsz:
perl /volume1/transmission/scripts/update-syno.sh /volume1/video/
perl /volume1/transmission/scripts/update-syno.sh /volume1/transmission/A bejárási út persze az legyen ahol az update script eredetileg van
A transmission configjában meg van egy done script sor, ide kell beírni, h reindex (meg az elérési utat hozzá).
Új hozzászólás Aktív témák
A Synology szervereinek a Quickconnect használatával történő visszaéléséről szóló hozzászólások vagy témák előzetes értesítés nélkül törlésre kerülnek!
A párosított generátorok (MAC és SN) linkek vagy eszközök is törlésre kerülnek!
A Surveillance Station feltörésére vonatkozó hozzászólások vagy témák és / vagy a feltört / SS hivatkozások létrehozása törlésre kerül előzetes értesítés nélkül.
- Windows 10 11 Pro Office 19 21 Pro Plus Retail kulcs 1 PC Mac AKCIÓ! Automatikus 0-24
- Számlás!Steam,EA,Epic és egyébb játékok Pc-re vagy XBox!
- Eredeti Microsoft termékek - MEGA Akciók! Windows, Office Pro Plus, Project Pro, Visio Pro stb.
- Kaspersky, McAfee, Norton, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Dell Latitude 5300 5310, 5400, 5410, 5420, 5430, 7480, 7490
- Lenovo Yoga Pro 9 (16IMH9) - Intel Core Ultra 9 185H, RTX 4060, 32GB, érintős ELKELT
- Telefon felvásárlás!! iPhone 12 Mini/iPhone 12/iPhone 12 Pro/iPhone 12 Pro Max
- AKCIÓ! Apple MacBook PRO 15" 2018 i9 32GB 500GB 560X 4GB notebook garanciával hibátlan működéssel
- Kimaxolt verzió! - 100 - Lenovo Yoga Pro 9 (16IRP8) - Intel Core i9-13905H, RTX 4070, 1TB SSD, 64GB
Állásajánlatok
Cég: CAMERA-PRO Hungary Kft
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest