Oo8Ez5ai 05addfb95e
NicovideoSeiga: Fix file type handling. (#10352)
When downloading NicovideoSeiga image, the saved file extension has become wrong type. This commit addresses the issue by fixing following errors.
- Images is determined the type by file header. The logic has wrongly assumed Byte.toInt() returns unsigned integer, but it actually returns signed value.
- The server returns application/octet-stream as Content-Type header. But the logic only worked when header is empty.
2022-01-05 07:11:25 -05:00

13 lines
284 B
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'
ext {
extName = 'Nicovideo Seiga'
pkgNameSuffix = 'ja.nicovideoseiga'
extClass = '.NicovideoSeiga'
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"