Name=$(/usr/bin/jq -c -r '.entries.name' /tmp/channels.json) Uuid=$(/usr/bin/jq -c -r '.entries.uuid' /tmp/channels.json) Svcname=$(/usr/bin/jq -c -r '.entries.svcname' /tmp/channels.json) Jq '.entries |= sort_by(.number)' /tmp/channels_unsorted.json > /tmp/channels.jsonĮntries=$(/usr/bin/jq -c '.total' /tmp/channels.json)įor (( service=0 service<= $entries service++ ))Įnabled=$(/usr/bin/jq -c '.entries.enabled' /tmp/channels.json) svcname)' /tmp/services_unsorted.json > /tmp/services.jsonĮntries=$(/usr/bin/jq -c '.total' /tmp/services.json)įor (( service=0 service /tmp/channels.json #cp /tmp/services_unsorted.json /tmp/services.json Wget -O /tmp/services_unsorted.json :9981/api/mpegts/service/grid?limit=100000 # you must have installed jq (apt-get install jq) It is not very secure since it will include the user:password, but if that doesn't bother you. You could use one of the following scripts to generate a playlist.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |