vocadb icon indicating copy to clipboard operation
vocadb copied to clipboard

More filters for search: media/source type

Open andreoda opened this issue 3 years ago • 7 comments

Currently we only have the option to search for:

  • no original media
  • no media and
  • only with PVs

I think it would be useful to include the type of media as well. For example:

  • NicoNicoVideo
  • YouTube
  • bilibili
  • SoundCloud

Based on the the media types that are currently supported as embeds.

I am not sure though, if it should be "only original media" or if it should include reprints as well as default.

andreoda avatar Aug 13 '21 12:08 andreoda

I am not sure though, if it should be "only original media" or if it should include reprints as well as default.

The current API implementation includes reprints as well, so it should probably mirror the same behaviour.

Shiroizu avatar Aug 13 '21 13:08 Shiroizu

You can use the songs API call with the parameter pvServices. For example, use https://vocadb.net/api/songs?pvServices=YouTube and https://vocadb.net/api/songs?pvServices=SoundCloud for YouTube and SoundCloud, respectively.

These are all possible values of pvServices: https://github.com/VocaDB/vocadb/blob/dc352077711421e5d2c07a196aa427cc401b2841/VocaDbModel/Domain/PVs/PVService.cs#L45-L68.

ycanardeau avatar Aug 27 '21 22:08 ycanardeau

Oh okay. How do I use it? I want to find songs that have no YT PV added.

andreoda avatar Aug 27 '21 23:08 andreoda

Hmm, I think it's impossible with the current API implementation.

ycanardeau avatar Aug 27 '21 23:08 ycanardeau

If it's a one time thing, you could use the datadump to get the entries with no Youtube PVs.

Shiroizu avatar Aug 28 '21 05:08 Shiroizu

Given that this topic got reopened on VocaDB itself, consider this a vote towards PV search functions, once again.

CatgirlFrostmoon avatar Jan 21 '22 19:01 CatgirlFrostmoon

mentioned

ycanardeau avatar Jan 22 '22 01:01 ycanardeau