Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API return should split watched tag by files #293

Open
jluc2808 opened this issue Jul 14, 2016 · 1 comment
Open

API return should split watched tag by files #293

jluc2808 opened this issue Jul 14, 2016 · 1 comment

Comments

@jluc2808
Copy link
Member

using API : api/video/episodes.json?&seriesid=2&seasonid=7&dataitems=plot,files,rating
the watched flag is return at the type level (here episode)
if there is several file inside for the type , by example 2 files (VOSTR and FRENCH language) for the same episode , as the watched flag is return at episode , so we couldn't differenciate each file as watched or not

could we return the watched flag at the files level too

here the return with watched flag at type level
"results": [
{
"id": 696,
"seriesId": 2,
"seasonId": 7,
"season": 6,
"episode": 1,
"title": "Comme si c'était la première fois",
"originalTitle": "First Time Again",
"plot": "Le groupe de Rick a toujours des difficultés à s’intégrer à Alexandria. Alors que de multiples menaces forcent la communauté à durcir leur attitude, Rick et les autres doivent faire marche arrière concernant le comportement violent qu’ils ont adopté.",
"firstAired": "2015-10-11",
"watched": true,
"videoimage": "t/th/The Walking Dead_0000_006_001.episode.videoimage.5266516.default.jpg",
"ratings": [
{
"source": "combined",
"rating": 89
},
{
"source": "imdb",
"rating": 89
}
],
"files": [
{
"id": 739,
"extra": false,
"container": "Matroska",
"codec": "V_MPEG4/ISO/AVC",
"codecFormat": "AVC",
"codecProfile": "High@L4",
"bitrate": 5148,
"overallBitrate": 5535,
"fps": 23.976,
"width": 1916,
"height": 1076,
"aspectRatio": "1.777:1",
"runtime": "1h 4m",
"videoSource": "WEBDL",
"fileId": 1601,
"fileName": "T:\video\Film\series\The Walking Dead\The Walking Dead S06 - 1080p.BluRay.x264.com\The Walking Dead S06E01 - VOSTFR.1080p.WEB-DL.DD5.1.H264.mkv",
"fileDate": "2016-05-12 13:26:10",
"fileSize": "2.5 GB",
"season": 6,
"episode": 1,
"audioCodecs": [
{
"codec": "A_AC3",
"codecFormat": "AC-3",
"bitrate": 384,
"channels": 6,
"languageCode": "en",
"language": "anglais"
}
],
"subtitles": [
{
"format": "UTF-8",
"languageCode": "fr",
"language": "français",
"defaultFlag": true,
"forcedFlag": false
},
{
"format": "UTF-8",
"languageCode": "en",
"language": "anglais",
"defaultFlag": false,
"forcedFlag": false
}
]
},
{
"id": 849,
"extra": false,
"container": "Matroska",
"codec": "V_MPEG4/ISO/AVC",
"codecFormat": "AVC",
"codecProfile": "High@L4",
"bitrate": 5368,
"overallBitrate": 5754,
"fps": 25,
"width": 1916,
"height": 1076,
"aspectRatio": "1.777:1",
"runtime": "1h 2m",
"videoSource": "WEBDL",
"fileId": 1766,
"fileName": "T:\video\Film\series\The Walking Dead\The Walking Dead S06 - 1080p.BluRay.x264.com\The Walking Dead S06E01 - 1080p.WEB-DL.DD5.1.H264.mkv",
"fileDate": "2016-05-18 01:53:17",
"fileSize": "2.5 GB",
"season": 6,
"episode": 1,
"audioCodecs": [
{
"codec": "A_AC3",
"codecFormat": "AC-3",
"bitrate": 384,
"channels": 6,
"languageCode": "fr",
"language": "français"
}
]
}
]
},

@jluc2808
Copy link
Member Author

priority 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant