Closed tylergibbs2 closed 1 year ago
Adds support for detecting 4k and 4K video resolutions.
4k
4K
I also added test cases for two inputs I found that were missing the video_resolution key in the result due to them being 4k. I noticed that this test case existed already in the tests table:
video_resolution
[GM-Team][国漫][诛仙][Jade Dynasty][2022][11][HEVC][GB][4K]
But when I parsed this input, the video_resolution key was missing despite the test case showing that it should be there.
>>> import anitopy >>> anitopy.parse("[GM-Team][国漫][诛仙][Jade Dynasty][2022][11][HEVC][GB][4K]") { 'file_name': '[GM-Team][国漫][诛仙][Jade Dynasty][2022][11][HEVC][GB][4K]', 'video_term': 'HEVC', 'anime_year': '2022', 'episode_number': '11', 'anime_title': 'Jade Dynasty', 'release_group': 'GM-Team' }
Oops - I just noticed this was implemented in #14.
Going to close this for now, but I would suggest changing the regex added in that PR to support both upper and lowercase K.
K
Adds support for detecting
4k
and4K
video resolutions.I also added test cases for two inputs I found that were missing the
video_resolution
key in the result due to them being 4k. I noticed that this test case existed already in the tests table:[GM-Team][国漫][诛仙][Jade Dynasty][2022][11][HEVC][GB][4K]
But when I parsed this input, the
video_resolution
key was missing despite the test case showing that it should be there.