Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2020-11-10 Thread adhawkins


I'm not sure what could be going wrong here. All SimpleLibraryViews does
is add an entry into the library_track table for each track id that
exists within a particular library view. Everything else is down to the
main SlimServer code displaying them.

Wonder if @mherger has any thoughts?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2020-11-09 Thread adhawkins


Hi,

It's been a long time since I looked at this. However, I can't think of
any reason why the plugin should make changes such as those you
describe.

If you go back to your 'master' library list, are these artists also
listed?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2020-05-12 Thread adhawkins


Great, thanks.

Let me know if there's anything I can help with.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2020-05-11 Thread adhawkins


frankd wrote: 
> My recent update to an LMS 7.9.3 April 30 (last one before was January)
> caused a 100% processor load and a very unresponsive LMS with all kind
> of side effects - Players disconnecting and not reconnecting, slow
> response, no updated view on Screens for clients - basically a
> non-responsive LMS. 
> It took me quite a time to find out the issue by systematic try and
> error deactivating my plugins:
> Deactivating the Simple Library Views Plugin resolved the issue - I am
> not sure what the specific issue of this plugin was, as I never used it
> actively.
I'd be interested in getting to the bottom of this if possible. Any
chance you could help debug this?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2019-11-18 Thread adhawkins


gorman wrote: 
> Did any further development go into this?
I haven't done any work on this plugin in some time. It pretty much
serves my needs as it stands. I did intend to implement the sub-folder
style support, but didn't get round to it.

The code is all on GitHub
(https://github.com/adhawkins/SimpleLibraryViews). Happy for someone
else to do some work on it and submit a pull request.

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-09-19 Thread adhawkins

drmatt wrote: 
> One further request .. I have music all over the place depending on the
> source, so is it possible to implement a view that's "everything, EXCEPT
> tagged folders .. "?
> 
> Right now I have numerous methods of producing a "kids" view, but I
> really want a main view that's "everything but the kid's stuff" ..
> Ultimately I can write out the appropriate tags and manage those with
> scripts if necessary but it's inelegant.. :)
> 
That's something that was always on my feature list (the ability to
define library views based on combinations of other library views), but
I need to have a think about how that would be configured.

drmatt wrote: 
> Oh, and could the Help text in the LMS GUI be updated to include the
> template for the filenames you need to create?
That's already in the next planned release, which makes the
configuration page a little easier to use. Not sure whether I'll release
that 'as is', or wait until I've also implemented the subfolder
support.

Thanks for your interest.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-09-08 Thread adhawkins

Jackisidore wrote: 
> Thanks for this nice plugin.
> Every folder with mp3 or flac files should have a file
> 'simple-library-views-libraryviewname'? Would it be possible to place
> one file 'simple-library-views-libraryviewname' which is valid for all
> mp3 and flac files in subfolders?

Ok, I'm going to start looking at this. Do you think the default should
be to search parent directories, or not to? I'd go for searching
personally, but wondered what the concensus was.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-08-22 Thread adhawkins

Jackisidore wrote: 
> Thanks for this nice plugin.
> Every folder with mp3 or flac files should have a file
> 'simple-library-views-libraryviewname'? Would it be possible to place
> one file 'simple-library-views-libraryviewname' which is valid for all
> mp3 and flac files in subfolders?
I did consider doing this, but decided against it as the scanning
process would then have to start walking up the directory tree for each
media file it finds, looking to see if the appropriately named file is
in one of the parent directories. It'd also have to be careful not to
walk up higher than the top level of the music library!

When Michael did his optimisations, I think one of the big performance
hits he found was in actually looking for the library file in the
directory, which is why this is now cached during the scanning process.

I might have a look at some point to see just how much of a performance
hit this would be.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-07-11 Thread adhawkins

I didn't realise you could add folders within Favourites. That'll help
me clear up all the junk my daughter keeps putting in there :)

Can an album / track / whatever appear in multiple Favourites folders
then? Sounds like your idea is pretty neat.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-09 Thread adhawkins

mherger wrote: 
> Yes, I've set up a beta.xml for this use case.
Great, I'll put this in place in readiness for any further work I do.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-08 Thread adhawkins

mherger wrote: 
> >> I've added your plugin to the main repository. Thanks!
> > What does that mean exactly? People won't have to add my own
> repo.xml?
> 
> Yes.
Cool! :)

mherger wrote: 
> 
> 
> > Should I continue to maintain repo.xml?
> 
> And yes again: our repository file is semi-automatically built from your
> 
> repository file (and mine, and the others). We have a list of repository
> 
> files we merge. I added yours to that list. Therefore it's still your 
> job to update your repo.xml, and my little script will merge the updates
> 
> every now and then.
> 

Understood.

If I want to maintain a 'pre-release' track for future releases, what's
the best way to do that? To maintain a separate repo.xml that contains
pre-release and stable versions, alongside this repo.xml that only
contains stable releases?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-08 Thread adhawkins

mherger wrote: 
> I've added your plugin to the main repository. Thanks!
What does that mean exactly? People won't have to add my own repo.xml?

Should I continue to maintain repo.xml?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-08 Thread adhawkins

I've just release v1.0.0. Not much changed, but I'd consider this
'stable' now.

v1.0.0
--

* Correctly initialise preferences on new install

Please let me know if you have any issues or suggestions. Best bet is
via GitHub:

https://github.com/adhawkins/SimpleLibraryViews/issues

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-03 Thread adhawkins

Thanks both for the response. If it's useful to more than just me, then
I'll try to get a v1.0 release out in the next few days.

I have some ideas for making it more useful, primarily around the
configuration of library views. I'd like to be able to specify library
views that are combinations of others.

e.g. For the music I use in a random mix at work:

andy and not audiobooks

If anyone has any other suggestions for improvements, then I think the
best way is to log them as change requests at GitHub:

https://github.com/adhawkins/SimpleLibraryViews/issues

I'll start adding a few of my own ideas there, look forward to hearing
any others.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-06-02 Thread adhawkins

Anyone finding this plugin useful?

I think I've resolved the issue with uninitialized values, but not sure
it was actually causing a problem.

Unless anyone has any problems, I'll release a v1.0 of this and consider
any potential future developments.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-05-20 Thread adhawkins

Thanks for the confirmation @kidstypike, @mherger had provided me with
some hints as to how to speed things up, but while I was in the middle
of implementing them he submitted a pull request with them all done!
Still, I learned a bit more about Perl database in the process, so no
bad thing!

I've got a sneaky feeling there's still a bug that exists the very first
time the plugin is installed and a library view is configured. I see
some warning about using undefined variables in a comparison, and I'm
not 100% sure the comparison 'works' as a result. I'll investigate that
today.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-05-19 Thread adhawkins

I've just released v0.99.2.

Release notes below:

v0.99.2
---

* Plugin now licensed under the GPL
* Correctly register and unregister library views when changes are made
in settings
* Only actually build library views from scanner process, trigger a scan
when appropriate
* Performance enhancements in library view building (thanks to Michael
Herger)

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-05-15 Thread adhawkins

I've just release v0.99.1 of this plugin. The only real difference is
that the file can now be called either:

simple-library-views-libname

or

.simple-library-views-libname

This means that the library view files can now be 'hidden' when used on
a Linux OS.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-14 Thread adhawkins

mherger wrote: 
> I guess I'm too late... but I'd suggest you only use numerical version 
> numbers, no alpha/beta etc. additions
That's what I've done, started with 0.99.x for the pre-release versions.
Will eventually release a 1.0 when any kinks are ironed out.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] ANNOUNCE: Simple Library Views plugin

2016-05-13 Thread adhawkins

Hi all,

I'm happy to announce the availability of the first version of the
Simple Library Views plugin. This plugin allows you to easily define
library views, simply by entering a list of views to create, and then
creating appropriate files in album directories to add albums to a
view.

Full details of the plugin are available here:

http://adhawkins.github.io/SimpleLibraryViews/

Thanks to mherger and kidstypike for their assistance in the development
of this plugin.

This is my first ever LMS plugin, so I'd appreciate any feedback you can
give. Please use this thread for any questions or comments.

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105593

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Ok, SimpleLibraryView it is then.

I'll do the renaming now, and post up an updated repo at some point.
Will release the next version as 0.99.0, with a view to this eventually
becoming 1.0. Once this is done I'll create an announcement post to see
if there's a wider interest.

Are we allowed descriptors like alpha, beta etc. in the version number
in the repo and install.xml?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

mherger wrote: 
> And yes, I would change it.
Any suggestions?

EasyLibraryView
SimpleLibraryView

?

I'd be tempted to rename all the files etc., at the end of the day I
suspect there are at most 3 people who have it installed. If I changed
the UID as well, then it'll just be a question of asking people to
uninstall the old named one...

So, do we need to take a vote? :)

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Ah, so *that's* what that setting was for! :)

Ok, seems to be doing the correct thing now.

Any comment on the naming question? Is the name of the plugin Ok as it
stands? If I were to rename it but keep the same UID would the server
handle the transition?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Hmmm, just tried that. The scan seems to have run after changing
preferences, but initPlugin wasn't executed, so the new libraries
weren't registered.

Something I missed?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Hmmm, it appears that the new libraries aren't being registered by the
scan process, based on what kidstypike has just said.

Should my initPlugin get run from within the scanner? It doesn't seem to
be.

If it isn't, how can I ensure that the registerLibrary call is made by
the scanner?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

mherger wrote: 
> Yes, that's fine. But you shouldn't need to run the library creation 
> from there. Trigger a scan instead.
Ah ok, hadn't fully understood that.

How do I trigger a scan?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Another question, any comments on the name of the plugin? I was
wondering whether 'Easy Library Views' might be more descriptive (the
option in the web interface and player for selecting between them is
called 'Library Views'.

If I were to rename the plugin, but keep the same ID in the install.xml,
would the server handle the name change?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Hi,

@kidstypike: I think the creation of the first library might have an
issue. There are a couple of warnings in the log that refer to using an
uninitialised value. I'll do some digging into it this evening to see if
I can track it down.

@mherger: Point taken, but I have to register the libraries sometime,
and I figured the best way to do this was after the settings had
changed. If I don't do that, then the scanner won't know about the new
libraries will it?

I was using LazySearch as an example of how to do this, but that plugin
actually sets a timer to fire off the changes a short time after the
settings have been edited. I should probably duplicate this behaviour so
that the settings page can return immediately, and then trigger the
registering of the new libraries sometime later.

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Excellent.

I'll try to add some extra information to the plugin settings page and
get a 'final' test release out.

@kidstypike, did you manage to get things added to the library view by
correcting the file name?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Ok, understood.

I think kidspype did add it to the settings page, but then got the
filename wrong in the album directory (he made a .txt file, when it
expects a file with no extension).

I've added a bit more detail to the README.md on GitHub. Do you think
that's sufficient?

https://github.com/adhawkins/EasyVirtualLibrary

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

I thought that was covered in the README I pointed to at GitHub.

The setting lists all of the libraries views that should exist. The
file(s) in the music folder indicates which albums should be included in
which view.

If that's not clear enough from the GitHub README, then please let me
know and I'll try to add some more details to it. I agree that the
documentation on the Plugin's settings page isn't enough, but before I
do too much on that page, I'd like to know if the GitHub README is
considered sufficient, or if it needs further detail.

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

kidstypike wrote: 
> Yes file ext. is .txt
That might be the issue, the file shouldn't have an extension...

Can you try renaming the file and see if it now works?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

kidstypike wrote: 
> Followed instructions and created a text file named
> 'easy-virtual-library-test', and put it alongside music files within an
> album folder.
> 
> Ran "new and Changed" scan, EasyVirtualLibrary "test" created but
> contains no tracks?

Did you add 'test' to the list of libraries in the plugin's settings
page?

Can you change the logging settings for 'plugin.easyvirtuallibrary' to
'debug', re-run the scan and post your server.log file here?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

Ok, just changed all my URLs to HTTPS and managed to install everything
correctly. It still didn't prompt me to restart the server after the
installation so, so what appears to happen is that all reference to the
plugin disappears from the plugins page...

Regarding the settings page, does the description in the GitHub
README.md provide enough detail? If so, I'll update the settings page to
provide a bit more info based on that.

https://github.com/adhawkins/EasyVirtualLibrary

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-13 Thread adhawkins

mherger wrote: 
> Wow... I'm surprised we didn't hit this before. That's a bug in the 
> plugin manager. It would not accept anything but http://. That's fixed 
> in the next build. Thanks for the heads up!
No problem, and glad it's been fixed. Does it also allow the repository
URL to work over https:// ?

Is that the build I'll have downloaded this morning?
logitechmediaserver_7.9.0~1463124735

mherger wrote: 
> 403 is "no permissions". Are you sure you're using a public address?
> 
> FWIW: I just installed 0.3.1 successfully. So this seems to be
> resolved?
> 
It's possible that I was supplying an incorrect URL for the HTTP version
at GitHub. The reason it works now is that I've moved everything to my
own web hosting for now.

I'll put everything back onto GitHub with https URLs and run another
installation check later. If that all works Ok then hopefully it looks
like we've nailed this.

mherger wrote: 
> Definitely, yes. This thread's subject ends in a question mark. Users 
> tend to ignore this ;-). I usually prepend the subject with a "Announce"
> 
> or something to make it clear this is not a question.
> 
Ok, once I'm happy it's all installing correctly and seems to be
working, I'll make an 'Announce' post. Is this forum the best place to
do that? Or is one of the other topics more appropriate?

Thanks again for all the assistance.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-12 Thread adhawkins

Ok, not sure, but I think I might have made a little progress.

I was hosting the binaries on github, and the URL in the repo was
https://

I tried changing it to http, and started getting 403 errors downloading
from github.

So, I moved it to my own server on an http URL. After much deleting of
cache and the like, it now at least seems to have installed correctly.

Is there anything that can be done to enable downloads via HTTPS to work
correctly? There does seem to be something amiss.

I wonder if someone else can try installing from the plugin URL:

http://software.gently.org.uk/slim-plugins/repo.xml

and let me know how they get on?

I think the plugin is largely in a working state now, would be
interested in anyone else giving it a go to see how they get on. Perhaps
the best way to do that would be a new post announcing its
availability?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-12 Thread adhawkins

mherger wrote: 
> > Odd, if I change the repo to an HTTP URL, it gets added successfully.
> > Presumably I'm missing a perl module to handle HTTPS URLs?
> 
> I've noticed the same. Would have to further investigate to be sure 
> what's going on there.
> 
Ok. That might be an issue as I might end up putting the repo on to
GitHub, and I expect they're pretty much https everywhere these day.
It's sheer fluke that my 'software.gently...' domain doesn't force a
redirection to https...

mherger wrote: 
> OTOH there have been other reports about the plugin management starting
> 
> to behave oddly. I don't know what would/could cause this, as I haven't
> 
> touched that code in a long while. Are you using any other 3rd party 
> plugin in your LMS?
Certainly not in the one I've just set up today. It was a clean install,
all I did was set music and playlist directories, then try to enter the
plugin repo into the plugins page. Couldn't be much more vanilla
really.

Installed from the Debian package if it makes any difference...

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-12 Thread adhawkins

Odd, if I change the repo to an HTTP URL, it gets added successfully.
Presumably I'm missing a perl module to handle HTTPS URLs?

However, I'm now back at the stage where it gets added to the server
disabled, in the 'updates available' section. If I tick that and apply,
it disappears until I restart the server.

Will take a step back tonight and look over everything to make sure I'm
not doing anything stupid.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-12 Thread adhawkins

adhawkins wrote: 
> Rather than do that, I think I'll just generate a new VM and re-install
> from scratch.
> 
Well, I would do that, but the version in the new VM I've just created
won't let me add my repo...it just doesn't save it.

Grr...

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-12 Thread adhawkins

Hi,
mherger wrote: 
> I don't get it. Looking at install.xml again: remove the importmodule 
> value. You don't have an importer, do you?
> 
Ummm, probably not. That install.xml file was just copied from another
plugin and modified, so I may well have copied one that had an importer.
I'll try removing it.

mherger wrote: 
> The id: did you create that UUID yourself? Or did you get it somewhere?
> 
I'm pretty sure I used a web site to generate it. Is there an issue with
it, or are you just checking I didn't re-use someone else's?

mherger wrote: 
> - go to Settings/Information, write down locations for prefs and cache
> - Shut down LMS
> - delete cache.db from the cache folder
> - remove any reference to your plugin from (prefs)/plugin/state.prefs
> - remove any trace of your plugin in (cache)/InstalledPlugins and 
> (cache)/DownloadedPlugins
> - restart LMS, try again
> 
Rather than do that, I think I'll just generate a new VM and re-install
from scratch.

If it works Ok in that VM, then I'm happy I guess, unless there's some
special steps I need to take when the plugin is uninstalled to ensure I
clean up?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-11 Thread adhawkins

Thanks for the advice about the second server. Now running that 'live'
on the same network and all seems well.

I've made the change you suggest to the plugin xml file, and I think
it's *nearly* there.

Now, when I install it, it just disappears completely from the plugin
list, with no popup warning that I need to restart the server.

If I restart the server, it then comes back and is enabled.

There might be something else I've missed? Any chance you can have
another look?

Cheers

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-11 Thread adhawkins

Ok, I've built a test version and created a repo.

The repo is here:

https://software.gently.org.uk/slim-plugins/repo.xml

If I add that repo to my server, I then see an entry for
EasyVirtualLibrary. If I check that entry, it seems to install, but then
after that it seems to hop between either the section with available
updates, or the 'Inactive plugins' section. When I try to enable it when
it's in the 'Inactive plugins' section, I don't get any warning about
needing to restart the server, but it is logged as being skipped because
it is disabled. If I manually restart the server at this point, it seems
to jump back to the section listing plugins with updates.

I'm obviously doing something wrong either in the creation of the ZIP
file or the repo.xml.

Can someone have a look and tell me what I've done wrong?

Cheers

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-11 Thread adhawkins

That's great Michael, I'll try that script out this evening.

Thanks also for the information regarding clearing out the
library_tracks table. I just wanted to be sure I wasn't doing anything
wrong or had missed a step. I might add an unregister callback to empty
the table just so that I'm doing things 'right', although to be honest
I'd expect the virtual libraries code to do that automatically perhaps?

One other question. I've been developing and testing this using a server
in a VM with a 'host only' network, to prevent any of my players from
seeing this second server. However, in order to test properly, I'd like
to hook up a player to make sure it works as I expected. Can I be sure
that having a second server on the network won't suddenly make my
existing players start to use this second server? My daughter has her
Radio running at night while she sleeps, and I'd hate any development I
do to stop her music from working!

Thanks again.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-10 Thread adhawkins

Something else I've just noticed, if I unregister a Virtual Library, the
entries in the library_track table remain until a clear library and
rescan is carried out.

Do I need to do something to have these entries cleared out?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-10 Thread adhawkins

Ok, think I've got something that seems to work on a test server I've
spun up.

I think I'm now ready to package it up, set up a repository for it and
add it to my live server.

What's the simplest way of building the ZIP file and then an associated
repository for it? I'd ideally like to automate as much as possible.

Cheers

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-10 Thread adhawkins

Doh, my bad.

I was looking in the server log. Seems the entries that happen after a
scan end up in scanner.log. :o

Now to work out how to create a web page for preferences so that I can
name the libraries to scan for...

Any pointers? I think I'll do it as a single edit field initially, give
a semicolon separated list of libraries. Presumably there's a way of
triggering a scan if this list of libraries changes?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-10 Thread adhawkins

Hi Michael,

Thanks for the response. I'm pretty sure that my functions were not
being called during a rescan.

I'll try to remember to have another look this evening, and post
appropriate logs her in case they help.

Before I do this, any log settings relating to the scanner etc. that
might be worth turning on as well?

Cheers

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-06 Thread adhawkins

Ok, I think I've made some progress on this.

I've created a library, and in the callback for that library, I iterated
over every track in the tracks table, checking if a file exists in the
directory for each track. If I find the file, I add the track id and
library id to the library_track table.

However, I'm finding that once I've done this, my callback is never
called again. I presume it's because the scanner logic is deciding that
it doesn't need to rebuild my library, as no changes have been detected
during the scan.

Is this the case? If so, is there any way I can force the callback to be
called again, as obviously the files that indicate whether an album
should be part of the library could change at any time. I'd be happy for
this to only happen if a scan is triggered by the user, but that doesn't
seem to be happening. Anything I can do about this?

Thanks

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-05 Thread adhawkins

Ok, I'll start out just trying to get it working, and then look at
optimising it if it seems necessary.

Do you think there'd be any interest in this in the wider community? I
guess I could then look at adding some sort of configuration pages to
allow the creation of libraries. Thinking that maybe just dropping a
file called something like 'virtual-library-andy',
'virtual-library-fred' into the directory to add the music in that
directory to a library of that name. Then the user would just need to
give the server a list of library names to look for.

Maybe it could eventually be extended to handle amalgamated libraries,
something like 'andy and not audiobook', that sort of thing...

Anyway, hopefully I've got enough to get me started.

Is there any further documentation I could read? Or should I just
barrage you with further questions? :)

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-05 Thread adhawkins

Ooh, that sounds promising.

And these libraries would be updated whenever a new scan occurred?

I might be tempted to try to cache the data from the files containing
library names into a database somehow. I notice that in the database
directory is a database called 'PluginCache-SQLPlayList.db'. Is there
some 'standard' method for creating this database? Just wondering if
pulling the library names from a database would be quicker than having
to read the file from disk every time?

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-05 Thread adhawkins

mherger wrote: 
> How did you plan to present those filtered lists to the users? As 
> virtual libraries?
> 
Exactly that, yes. I just need some 'easy' way to filter tracks for
those virtual libraries. An extra tag (or even perhaps re-using 'Genre')
seemed like the easiest way to do this.

mherger wrote: 
> You plugin would have to register an importer. You already looked at the
> 
> Fulltext Search plugin. You'll get the idea. That importer can be run 
> after the other, regular scans. You could then grab a list of all 
> tracks, and process them with your magic.
I was hoping my plugin could be called as each track is added to the
library. The Full Text Search plugin seems to do this I think?

mherger wrote: 
> The file paths are stored in the url column of the tracks table. That 
> url can be converted to a file path using 
> Slim::Utils::Misc::pathFromFileURL($url).
Excellent, I figured there'd be a relatively simple way to do this,
thanks for the pointer!

mherger wrote: 
> I think this will be the crucial part: how to store your additional 
> data. The library.db has a pretty fixed structure. Unless you can fit 
> your data in there somehow, you might need to manage your own table.
As above, I did consider just adding a list of library names as the
'Genre' tag (I don't really use Genres for anything else at the moment).


mherger wrote: 
> But this might actually be a pretty simple solution if you opted for the
> 
> virtual libraries: a virtual library definition expects an SQL query 
> which returns track IDs to be used in a library. If you created your own
> 
> table, it could be as simple as two columns: user and track ID. The 
> library for user A would be defined as "select track_id from 
> my_custom_user_table where user = 'A'". I hope you get the point :-).
I do. The question then is, where do I create this table? Is there some
kind of hook in the plugin I can use, or would it just be something I
would do in 'initPlugin'?

I think my main issue is that there doesn't seem to be much
documentation regarding the plugin architecture and where to get
started...

Thanks for the response, very helpful. Any further pointers gratefully
received :)

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] New plugin, where to start?

2016-05-04 Thread adhawkins

Thanks for the pointer, looks like a good starting point. Doesn't seem
to interact with the scanning process though, which I think is a key
piece of the functionality I need.

Looking at the Full Text Search plugin at the moment, trying to work out
how that all hangs together.

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] New plugin, where to start?

2016-05-04 Thread adhawkins

Hi all,

I'm considering writing a plugin to allow 'extra' tags to be read from a
text file in the same directory as a music file. I want to do this to
add the ability to easily filter my music for each user in our
household, but don't want to modify the tags in the music files
themselves, as these are automatically updated based on data from
MusicBrainz.

Can anyone give me some pointers as to where to start to write a plugin
to achieve the following:

  
- For each track that is found, call a function in the plugin
- Retrieve the directory where that track is stored
- Read a file in this directory (if it exists) and cache its contents
- Add any tags in this file to the database for the track concerned
  

I've found some very sparse documentation in the Wiki, but this doesn't
really seem to be detailed enough for someone with no existing knowledge
of the plugin system. I'm a software developer by trade, with a basic
working knowledge of Perl (although it's be a good few years since I
wrote anything of any size using it).

Thanks in advance

Andy



adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Backstage.bbc.co.uk feed for AlienBBC?

2005-10-21 Thread adhawkins

Hi,

Have the authors of AlienBBC been made aware of the BBCs 'Backstage'
project? (http://backstage.bbc.co.uk/). It appears to be an attempt to
make a lot of the BBCs content available for external use.

They have a mailing list, and relatively recently someone asked if
there was any chance of having (say) an XML feed of all of the 'listen
again' and live radio feeds. I seem to remember a discussion on here
saying that AlienBBC effectively parses the HTML generated from the BBC
site in order to determine the available feeds. If an XML feed were made
available, presumably this would be a much better way of doing it?

Any comments?

Andy


-- 
adhawkins
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins