yarafie 6 Posted December 15, 2021 Share Posted December 15, 2021 2 minutes ago, VicMoore said: Think about how you would like for it to work on your phone. I can always add in special code. Vic That would be cool. I'll think about it. Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 15, 2021 Author Share Posted December 15, 2021 CBers, OK I will do it today. I will also fix the refresh problem. Vic Link to comment Share on other sites More sharing options...
CBers 6742 Posted December 15, 2021 Share Posted December 15, 2021 3 minutes ago, VicMoore said: CBers, OK I will do it today. I will also fix the refresh problem. Vic Thanks. No rush for this, only when you have time. It's a nice to have eventually, not an immediate necessity. Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 15, 2021 Author Share Posted December 15, 2021 CBers, OK I fixed it the way you suggested. Now you get to test it. Hopefully it didn't break anything else Also, you no longer need to add "HTTP://" to your IP address. It's added automatically if you leave it off. Vic EmbyTagApp17.html 1 Link to comment Share on other sites More sharing options...
CBers 6742 Posted December 15, 2021 Share Posted December 15, 2021 2 minutes ago, VicMoore said: CBers, OK I fixed it the way you suggested. Now you get to test it. Hopefully it didn't break anything else Also, you no longer need to add "HTTP://" to your IP address. It's added automatically if you leave it off. Vic EmbyTagApp17.html 169.37 kB · 0 downloads Doesn't work, as I use https for my server. The line here needs amending to check for absence of http and https, as I am getting http://https://server:port in the filed now. if(!temp.startsWith("http://")) embyServerIp = "http://"+embyServerIp; 1 Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 15, 2021 Author Share Posted December 15, 2021 Yep, you are right. I corrected it. Vic EmbyTagApp17.html 1 Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 16, 2021 Author Share Posted December 16, 2021 Good morning Kanipek... I changed the code to use the actual channel numbers defined for channels. Test it out and see if it works OK. Yarafie, please also check to make sure everything works for you also. Does anyone want additional info included with the channels? Vic EmbyTagApp18.html Link to comment Share on other sites More sharing options...
gillmacca01 148 Posted December 16, 2021 Share Posted December 16, 2021 Having an issue here, probably doing something wrong. I am attempting to remove and add tags for Live TV. i can get all the channels displayed, but when I add filter for 'US Local', and apply, I am still seeing all the channels that have other tags Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 16, 2021 Author Share Posted December 16, 2021 Hello gillmacca01... I probably did something wrong. I will look into this right now. My big problem is that I don't have any IPTV. I can only test with virtual TV. Vic Link to comment Share on other sites More sharing options...
gillmacca01 148 Posted December 16, 2021 Share Posted December 16, 2021 Would it be any help if I PM'ed you my login details? Link to comment Share on other sites More sharing options...
kanipek 221 Posted December 16, 2021 Share Posted December 16, 2021 44 minutes ago, VicMoore said: Test it out and see if it works OK Works exactly as I would expect! Thank You! Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 16, 2021 Author Share Posted December 16, 2021 Gillmacca01... The problem is that Emby doesn't support filtering channels on tags. I have not had time to disable the filter items that don't apply to the context that the filtering is being applied. I will look further into the API with Swagger and try to do what you are requesting. It will be a good learning exercise Vic 1 Link to comment Share on other sites More sharing options...
kanipek 221 Posted December 16, 2021 Share Posted December 16, 2021 3 minutes ago, VicMoore said: Emby doesn't support filtering channels on tags I'm not sure what you are referring to here - the API? In EPG that you get within Emby you can filter by tags - that is what makes this tool so helpful! Just FYI. Love it. Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 16, 2021 Author Share Posted December 16, 2021 Kanipek, I am referring to using the Emby API to do the filtering/sorting within the server (not the client). I send a "GET" to the server requesting the channels and with that "get" I specify how I want the data filtered. At present the API ignores my request to filter the channels based on tags. If you look at the API, Tags are missing. Of course, I am new to this API and could be overlooking the obvious. This is why I said I would study the API at a deeper level. I appreciate your comments and all of you have made this code so much better. I would appreciate any correction and pointers to how to use the API to filter channels. Vic Link to comment Share on other sites More sharing options...
yarafie 6 Posted December 16, 2021 Share Posted December 16, 2021 1 hour ago, VicMoore said: Hello gillmacca01... I probably did something wrong. I will look into this right now. My big problem is that I don't have any IPTV. I can only test with virtual TV. Vic Hi vic If you want to get some Live TV which is legal and free you can visit the following git sites. For Live TV https://github.com/iptv-org/iptv For corresponding EPG https://github.com/iptv-org/epg There are many to choose from to enjoy and can also help your testing Link to comment Share on other sites More sharing options...
yarafie 6 Posted December 16, 2021 Share Posted December 16, 2021 1 hour ago, VicMoore said: Good morning Kanipek... I changed the code to use the actual channel numbers defined for channels. Test it out and see if it works OK. Yarafie, please also check to make sure everything works for you also. Does anyone want additional info included with the channels? Vic EmbyTagApp18.html 169.13 kB · 3 downloads Works right didn't really notice channel numbers until you pointed it out V18 is more correct since you are using the channel number from channel metadata I assume. Link to comment Share on other sites More sharing options...
kanipek 221 Posted December 16, 2021 Share Posted December 16, 2021 2 hours ago, VicMoore said: At present the API ignores my request to filter the channels based on tags. This will be very useful if you get it worked out. Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 17, 2021 Author Share Posted December 17, 2021 I added to the channels display a dropdown box with all of the channel tags. If you select one of these tags the channels will be filtered with that tag. Give it try. But, precede carefully because it has not been tested. Let me know if it works as expected. Vic EmbyTagApp19.html 1 Link to comment Share on other sites More sharing options...
kanipek 221 Posted December 17, 2021 Share Posted December 17, 2021 1 hour ago, VicMoore said: Let me know if it works as expected. Works just as expected. Well done! Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 17, 2021 Author Share Posted December 17, 2021 Thanks, I am glad it works. I just hope that I didn't break something else Vic 1 Link to comment Share on other sites More sharing options...
yarafie 6 Posted December 17, 2021 Share Posted December 17, 2021 4 hours ago, VicMoore said: I added to the channels display a dropdown box with all of the channel tags. If you select one of these tags the channels will be filtered with that tag. Give it try. But, precede carefully because it has not been tested. Let me know if it works as expected. Vic EmbyTagApp19.html 171.27 kB · 2 downloads Quick testing it works filter on tags. Also when I applied the general filters sort by and sort direction it honors that keeping the filter by tag. Will do more extensive testing later. Thanks Link to comment Share on other sites More sharing options...
gillmacca01 148 Posted December 17, 2021 Share Posted December 17, 2021 Works great on Live TV now. Managed to change the tags of over 100 channels in one go. Thanks 1 Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 17, 2021 Author Share Posted December 17, 2021 (edited) I made a few simple changes to the pull down list for channels. Vic EmbyTagApp19.html Edited December 17, 2021 by VicMoore 1 Link to comment Share on other sites More sharing options...
VicMoore 533 Posted December 19, 2021 Author Share Posted December 19, 2021 Yarafie took the time to explain IPTV to me. I now understand the advantages of tagging channels. I can also do more testing. Vic 1 1 Link to comment Share on other sites More sharing options...
neik 834 Posted December 20, 2021 Share Posted December 20, 2021 On 12/15/2021 at 1:59 PM, VicMoore said: Hi Neik... Yes, I will add the filter that you want if I can figure out how to do it. So far, I have not been able to get the subtitle languages from the API. I will look harder Vic Hi Vic, just had a look at the swagger API and found the endpoint "/Items/{Id}/PlaybackInfo" within "MediaInfoService" which gives you an json-output like this: { "Codec": "dts", "Language": "eng", "TimeBase": "1/1000", "DisplayTitle": "English DTS 5.1", "DisplayLanguage": "English", "IsInterlaced": false, "ChannelLayout": "5.1", "BitRate": 1536000, "Channels": 6, "SampleRate": 48000, "IsDefault": false, "IsForced": false, "Profile": "DTS", "Type": "Audio", "Index": 2, "IsExternal": false, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Protocol": "File", "AttachmentSize": 0 }, { "Codec": "DVDSUB", "Language": "ger", "TimeBase": "1/1000", "DisplayTitle": "German (DVDSUB)", "DisplayLanguage": "German", "IsInterlaced": false, "IsDefault": false, "IsForced": false, "Height": 1080, "Width": 1920, "Type": "Subtitle", "Index": 3, "IsExternal": false, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Protocol": "File", "AttachmentSize": 0 Maybe helpful for the audio/sub language filter? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now