Comments (6)
I am working on fixing this too. Currently when browsing files, json rpc reports the file types as "unknown" because I don't believe it reads the media metadata during browsing. Should I assume the media type based on file extension(s) then?
from kore.
No, don't use the file extensions. Files.GetDirectory also receives a parameter "Media" which should filter the type of files it returns. Have you tried it?
from kore.
@DanhKE6D
I've played a little bit with Files.GetDirectory
, and it really should be invoked with the parameters media
and properties
.
media
filters the output: if you set it to video
it only returns videos, etc.
properties
makes it return much more info, including metadata. Take a look at the jsonrpc to check what can be in there.
Check a request like this:
{"jsonrpc":"2.0","id":1, "method":"Files.GetDirectory", "params":{"directory":"/home/amsilva/Public/Music Videos/","media":"video","properties":["file","mimetype","title","size","thumbnail","fanart","album","artist","track","showtitle","season","episode","year","duration"]}}
If the files are on your library it returns all of the metadata, and even if it isn't, it at least returns the thumbnail
, which can be used to set the picture on each row.
Nice.
I'll have some time tomorrow, and i can start this. Have you changed anything yet?
from kore.
@SyncedSynapse
I was quite busy the last couple days. I started to fix the back key so that it would traverse one directory up. I still need to store and restore the current directory after rotation is completed. If you have time, please start it. I will do a PR for #48 after you are done. Thank you.
from kore.
@SyncedSynapse
I played with the properties that you suggested using the new Files.GetDirectory method that you just extended. Only file, mimetype, and size return relevant values. For example, in video file browsing mode, with the mimetype property selected, only video files are returned even though the directory has a mix of music, video and picture files.
I was hoping to get a thumbnail, but that was not the case.
I will create another PR for this fix.
from kore.
Fixed on a8f9c3e
from kore.
Related Issues (20)
- Sharing a link with Kore always prompts for confirmation HOT 3
- Sort albums by year (Artist view) HOT 7
- Use term “playlist” in the same manner as Kodi HOT 2
- Share YouTube links fail on *some* devices. HOT 7
- Music list/search by artist only shows songs by album, ignores songs without album
- "Send text to mediacenter" menu truncates text HOT 1
- Add stop button to notification
- [Feature request] Add compatibility with DuffYou addon
- [Feature request] A dialog box for selecting a specific media player when playing over the network HOT 1
- [Feature request] Larger remote control buttons
- Playlist to list of items queued
- Switching Android profiles stops playback.
- Play on Kodi stopped working for SVT Play
- send to kodi from Android problem
- Sending live Youtube videos to Kodi doesn't work HOT 4
- Slow to load albums from Artist view
- Playback position when starting playing new album not updated
- [Feature request] Viewing Player Debug Info, Player Process Info HOT 1
- Kore will disconnect from Kodi on a local network if WiFi and mobile data are active (Android 12) HOT 1
- Kore volume control needs to be larger HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kore.