Filtering parameters on DLNA - upnp

I'm looking for a way to browse my DLNA server and I can't seem to find any documentation on how to browse and filter specific items. Put simply, this is what I want to do: get all music artists on the server, get all music albums on the server, get all music albums of a music artist, get all music tracks for a specific album. Is this possible?
I know that I could simply build a file directory browser to browse the server, but I'm working on something that attempts to obscure filesystem layout to the user. Is there a DLNA spec out there somewhere that I can work with?

The folder structure exposed by your DLNA server does not have to (and normally not) be mapped to the actual folder structure on the file system.
For example, "get all music artists on the server", You can expose the a virtual folder (container) called "artists", and the children of the container are list of the artist.
How to implement that? For example, some DLNA server has an database to store all the meta information of imported files. When server imports the files on the file system, it parses file to get metadata like artist, album, genre ...
When end user requests children your "artists" container, DLNA server will do a search on the database and to get the result.

Basically, I defaulted over to using the "Search" UPnP-ContentDirectory action. When it does work, it works well, but the problem is that most servers don't implement simple search functionality since it's not required by the UPnP specification, which, of course is the lamest thing ever. Welcome to the world of UPnP.

Related

Filter by "Camera" or "Partner"

I would like to be able to use the API to filter my media, but haven't figured out the appropriate filters. The two filters I'm looking for are:
media from my phone/camera (essentially what's in my phone's "Gallery" app)
media from my partner's phone/camera (a special shared folder that, for some reason, doesn't show up on the list of shared folders)
Those are easy enough to do in the app, but I can't figure out how to do that via the API. Any/all help appreciated.

Is there a way to find/display only the posts tagged on a specific location (i.e. Bali) by IG user?

The purpose would be to find content from the people you follow that were tagged to a location.
I cant seem to find the correct information on the developer page
except to creating photo containers (not a public api) or having to authenticate
https://developers.facebook.com/docs/instagram-api/reference/user/media#get-media

Possible to retrieve name/artist of a song from radio station website?

I am trying to create a Shazam like service that works over the phone,
I was able to use Inspect Element to dig around and find an API call for WRIT FM.
I am trying to do the same for WKLH FM but I have not been able to find any references to any code that points to the currently playing song metadata.
The now playing page is here: http://player.listenlive.co/41851
It doesn't come up when doing View Page Source either,
Is there any tool I could use to pinpoint where the metadata is coming from? I need to be able to extract text in real time using a custom-made API so I can use that in my application (Asterisk PBX),
On the song history page, there IS some of this information available but it doesn't seem like it's offered in any predictable way which could be parsed: http://player.listenlive.co/41851/en/songhistory
Thanks!

Is it possible for others to find images on my server that aren't referenced on my website?

If I upload a file to my webserver, is it possible for anyone or any crawler of some sort to find that file even though I haven't linked to it from anywhere or referenced to it?
Say for example you have a site that hides content to non logged in users, if I know the path to an image file I am able to reach that file even though I am not logged in. This is the case of several sites I regularly visit. But is this really a problem, is it possible for people with bad intentions to find these images even though they can't log in?
My next question would of course be (maybe that's another thread though): how can I as a web developer, using a LAMP stack, protect file paths from being requested from non logged in users?

using Search Server 2010 Express web service results are returning .aspx pages instead of documents

I have a Search web reference (from a Search Server 2010 express install) in a vb.net application that is utilizing the QueryService Class to search a production Sharepoint foundation 2010 site.
At a previous point in time, we had created a proof of concept on an entirely test system that has since been turfed. From my recollection on this test system when documents were uploaded as a specific site content type (that inherits from document) and metadata was provided, we could search for specific metadata by making managed properties for each, and search results would be returned as documents (with the isdocument flag set to true). Viewing the document then became simple, as we could simply use the filename and path to display the stored file.
Now we are developing a production system and we have encountered a new behavior, where these results now are returned as aspx results such as
http://digitizaton/Company/Client Documents/Forms/DispForm.aspx?ID=1703
This of course makes it terribly difficult to locate and view the document, we can extract the Title which will then give us the name of the file with no extension, but that hardly helps, as the FileExtension data is aspx, not the documents file extension, so we don't have a full filename. We could display the page returned as a result, but would much prefer the document itself.
I've made a test document library, with just bare bones setup, (not using the site content type, or site columns) and uploaded some documents on the same site, and they are returned in the same fashion, so I don't believe the document library, or content type are the issue.
With a fairly limited understanding of both Sharepoint and Search Server, I don't know if this is a setup issue with the search service itself, with the site configuration, or with the querypacket I am sending. We also have a third party application (Knowledgelake) installed on the server that ties into sharepoint which could have changed configuration somewhere as well?
I don't think the query packet has changed since it was working in the proof of concept, other than the custom data column names. I will provide it here in case there is something glaringly obvious to an external reader.
<QueryPacket xmlns='urn:Microsoft.Search.Query.Document'>"
<Query>
<SupportedFormats>
<Format>urn:Microsoft.Search.Response</Format>
</SupportedFormats>
<Range>
<Count>0</Count>
</Range>
<Context>
<QueryText type='MSSQLFT'>
SELECT Filename, Title, FileExtension, IsDocument, Path from Scope() WHERE ""Scope"" = 'Department1' AND CustomData = 'X' --
</QueryText>
</Context>
Any guidance would be incredibly appreciated. If I have not provided some relevant information, please let me know and I can track it down.
Thanks everyone
So now I feel like an idiot, I've searched for hours with no luck, and literally seconds after composing this post, I find the nugget of gold I've been searching for.
It appears that our primary file type, PDF, has a known issue with Sharepoint 2010, as shown at the following site.
http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/
and further to that, this registry entry setting is required to link it all together
http://www.mossgurus.com/adnan/Lists/Categories/Category.aspx?Name=SharePoint%202010%20--%20Configuration