Automatic scanning of removable drives/sticks/cards

Ready-to-use scripts, modules and plugins for Silverjuke.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Automatic scanning of removable drives/sticks/cards

Postby SilverEagle » 5. Jun 09, 09:39

Hi All,

Another gizmo for your Silverjuke...

This DLL detects insertion/removal of removables (USB sticks, SD cards, MP3 players etc). It will update the music library, and optionally delete any tracks not available anymore from the playlist.

removables_v10.JPG
removables_v10.JPG (24.82 KiB) Viewed 9756 times


Set up the plugin using [i]settings->advanced->further-options->Autodetect-removables.

The drives to monitor must be set up in the plugin, and the root of the removable drive must be present in your Silverjuke music library (if not the plugin will ask to do that for you).

And make sure you deactivate the Silverjuke music library option 'include in update process' for all your normal library paths, if not they will be scanned for updates every time you insert a USB stick :-)

Known issues:
- Skipping a removed/inserted drive when for instance inserting multiple USB sticks while SJ is busy scanning
- The normal update gives an error when trying to scan unconnected drives. This is unavoidable for the current Silverjuke version, a big part of this the plugin deals with avoiding these errors when rescanning ;-)
- The plugin uses a temporary directory in the Silverjuke workdirectory. No idea how Vista handles this, please post any issues you run into.

Enjoy,
SilverEagle
Attachments
Removables_v10.dll
Put this next to your silverjuke.exe
(20 KiB) Downloaded 809 times
Removables_v10_sourcecode.zip
The (MSVC 6.0) sourcecode for the curious and the paranoid
(10.05 KiB) Downloaded 582 times

jaag17hon
Posts: 2
Joined: 13. Sep 09, 16:18
Location: same
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby jaag17hon » 16. Sep 09, 05:04

Do you have a manual(documentation) so i Can see how to set it up?
Please, don't forget to reply me

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby SilverEagle » 16. Sep 09, 08:40

jaag17hon wrote:
> Do you have a manual(documentation) so i Can see how to set it up?
> Please, don't forget to reply me

Should be all explained in the opening post, I quote:

Download Removables_v10.dll, put this next to your silverjuke.exe

Set up the plugin using settings->advanced->further-options->Autodetect-removables.

The options with their comments should be sufficiently self-explaining, but just in case:

- Enabled: obviously on...

- Drives to monitor: find out (in Windows, not SJ) as what drive the sticks/drives/MP3-player/whatevers you want to monitor show up, and put those in this field.

- Delete tracks from playlist when drive is removed: if a stick is removed and songs are queued from this stick you can have the plugin remove those songs from the playlist. If you don't SJ will give an error (I think) when it tries to play them.

- Scan on program start: if enabled the plugin will always rescan on every program start. This is what you want if you first want to insert a stick and then fire up SJ. If you disable this then SJ will boot faster but will not detect any sticks you inserted/removed while SJ was not running.

Like I said: everything should have been clear, what you see is what you get. If it doesn't work for you you are either doing something different from the instructions in the opening post, or you found a genuine bug.

SilverEagle

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby Guest » 29. Oct 09, 10:21

Is there a way to access iPod as remote device??

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby SilverEagle » 29. Oct 09, 11:32

Guest wrote:
> Is there a way to access iPod as remote device??

The plugin only sees removable drives mounted by the OS, this can be any USB (or SCSI, firewire, etc) device as long as Windows can mount it, which means it has to offer the Mass Storage Devices class.

As far as I know iPod's are not accessible as such, but only in their own Apple-centric way using iTunes. Which is incidentally why I would never buy one - but if you send me one for free I promise to look deeper into the matter ;-)...

SilverEagle

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby Guest » 11. Mar 10, 20:14

Every time I add a removable device, even the existing folders are rescanned. That takes a long time. Is there a way that just the removable device is scanned?
Thanks

7ba

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby SilverEagle » 11. Mar 10, 20:36

Guest wrote:
> Every time I add a removable device, even the
> existing folders are rescanned. That takes a long
> time. Is there a way that just the removable
> device is scanned?

Yes, see instructions in the opening post ;-)

SilverEagle

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby Guest » 11. Mar 10, 20:43

Thanks, was a bit to obvious ;-)

7ba

pur_berger
Posts: 10
Joined: 16. Mar 16, 09:13
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automatic scanning of removable drives/sticks/cards

Postby pur_berger » 16. Mar 16, 15:59

Hello,

tried it with Windows 10 and last version of SilverJuke but can't see it in the config - is there a known issue with windows10?

Also would it be possible to add the option to import the files to the Music drive too?

Rgards

Markus


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Extensions”