mirror of
https://github.com/5rahim/seanime
synced 2026-04-18 22:24:55 +02:00
fixes, codegen
This commit is contained in:
@@ -35055,6 +35055,33 @@
|
||||
" The current stream being played"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "preparingClientID",
|
||||
"jsonName": "preparingClientID",
|
||||
"goType": "string",
|
||||
"typescriptType": "string",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "preparationCanceled",
|
||||
"jsonName": "preparationCanceled",
|
||||
"goType": "bool",
|
||||
"typescriptType": "boolean",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "preparationCancelFunc",
|
||||
"jsonName": "preparationCancelFunc",
|
||||
"goType": "",
|
||||
"typescriptType": "any",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "currentStreamEpisodeCollection",
|
||||
"jsonName": "currentStreamEpisodeCollection",
|
||||
@@ -35781,6 +35808,15 @@
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "onStop",
|
||||
"jsonName": "onStop",
|
||||
"goType": "",
|
||||
"typescriptType": "any",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "stopOnce",
|
||||
"jsonName": "stopOnce",
|
||||
@@ -42091,6 +42127,15 @@
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "extensionId",
|
||||
"jsonName": "extensionId",
|
||||
"goType": "string",
|
||||
"typescriptType": "string",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"comments": []
|
||||
@@ -49607,6 +49652,26 @@
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "Providers",
|
||||
"jsonName": "Providers",
|
||||
"goType": "map[string]hibiketorrent.AnimeProvider",
|
||||
"typescriptType": "Record\u003cstring, HibikeTorrent_AnimeProvider\u003e",
|
||||
"usedTypescriptType": "HibikeTorrent_AnimeProvider",
|
||||
"usedStructName": "hibiketorrent.AnimeProvider",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "DefaultProvider",
|
||||
"jsonName": "DefaultProvider",
|
||||
"goType": "string",
|
||||
"typescriptType": "string",
|
||||
"required": true,
|
||||
"public": true,
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"comments": []
|
||||
@@ -72145,17 +72210,6 @@
|
||||
" used to prevent refetching too many times"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "anilistRateLimit",
|
||||
"jsonName": "anilistRateLimit",
|
||||
"goType": "limiter.Limiter",
|
||||
"typescriptType": "Limiter",
|
||||
"usedTypescriptType": "Limiter",
|
||||
"usedStructName": "limiter.Limiter",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "helper",
|
||||
"jsonName": "helper",
|
||||
@@ -72177,6 +72231,39 @@
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "refreshRateLimit",
|
||||
"jsonName": "refreshRateLimit",
|
||||
"goType": "limiter.Limiter",
|
||||
"typescriptType": "Limiter",
|
||||
"usedTypescriptType": "Limiter",
|
||||
"usedStructName": "limiter.Limiter",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "refreshAnimeMetadataCancelFunc",
|
||||
"jsonName": "refreshAnimeMetadataCancelFunc",
|
||||
"goType": "context.CancelFunc",
|
||||
"typescriptType": "CancelFunc",
|
||||
"usedTypescriptType": "CancelFunc",
|
||||
"usedStructName": "context.CancelFunc",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "refreshMangaMetadataCancelFunc",
|
||||
"jsonName": "refreshMangaMetadataCancelFunc",
|
||||
"goType": "context.CancelFunc",
|
||||
"typescriptType": "CancelFunc",
|
||||
"usedTypescriptType": "CancelFunc",
|
||||
"usedStructName": "context.CancelFunc",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
@@ -80626,6 +80713,17 @@
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "updateEntryCalls",
|
||||
"jsonName": "updateEntryCalls",
|
||||
"goType": "[]FakeUpdateEntryCall",
|
||||
"typescriptType": "Array\u003cFakeUpdateEntryCall\u003e",
|
||||
"usedTypescriptType": "FakeUpdateEntryCall",
|
||||
"usedStructName": "testmocks.FakeUpdateEntryCall",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "updateEntryProgressCalls",
|
||||
"jsonName": "updateEntryProgressCalls",
|
||||
@@ -80640,6 +80738,76 @@
|
||||
],
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"filepath": "../internal/testmocks/fake_platform.go",
|
||||
"filename": "fake_platform.go",
|
||||
"name": "FakeUpdateEntryCall",
|
||||
"formattedName": "FakeUpdateEntryCall",
|
||||
"package": "testmocks",
|
||||
"fields": [
|
||||
{
|
||||
"name": "MediaID",
|
||||
"jsonName": "MediaID",
|
||||
"goType": "int",
|
||||
"typescriptType": "number",
|
||||
"required": true,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "Status",
|
||||
"jsonName": "Status",
|
||||
"goType": "anilist.MediaListStatus",
|
||||
"typescriptType": "AL_MediaListStatus",
|
||||
"usedTypescriptType": "AL_MediaListStatus",
|
||||
"usedStructName": "anilist.MediaListStatus",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "ScoreRaw",
|
||||
"jsonName": "ScoreRaw",
|
||||
"goType": "int",
|
||||
"typescriptType": "number",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "Progress",
|
||||
"jsonName": "Progress",
|
||||
"goType": "int",
|
||||
"typescriptType": "number",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "StartedAt",
|
||||
"jsonName": "StartedAt",
|
||||
"goType": "anilist.FuzzyDateInput",
|
||||
"typescriptType": "AL_FuzzyDateInput",
|
||||
"usedTypescriptType": "AL_FuzzyDateInput",
|
||||
"usedStructName": "anilist.FuzzyDateInput",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "CompletedAt",
|
||||
"jsonName": "CompletedAt",
|
||||
"goType": "anilist.FuzzyDateInput",
|
||||
"typescriptType": "AL_FuzzyDateInput",
|
||||
"usedTypescriptType": "AL_FuzzyDateInput",
|
||||
"usedStructName": "anilist.FuzzyDateInput",
|
||||
"required": false,
|
||||
"public": true,
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"filepath": "../internal/testmocks/fake_platform.go",
|
||||
"filename": "fake_platform.go",
|
||||
@@ -90280,6 +90448,37 @@
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "position",
|
||||
"jsonName": "position",
|
||||
"goType": "atomic.Int64",
|
||||
"typescriptType": "Int64",
|
||||
"usedTypescriptType": "Int64",
|
||||
"usedStructName": "atomic.Int64",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "lastPriorityPos",
|
||||
"jsonName": "lastPriorityPos",
|
||||
"goType": "atomic.Int64",
|
||||
"typescriptType": "Int64",
|
||||
"usedTypescriptType": "Int64",
|
||||
"usedStructName": "atomic.Int64",
|
||||
"required": false,
|
||||
"public": false,
|
||||
"comments": []
|
||||
},
|
||||
{
|
||||
"name": "updateStride",
|
||||
"jsonName": "updateStride",
|
||||
"goType": "int64",
|
||||
"typescriptType": "number",
|
||||
"required": true,
|
||||
"public": false,
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
|
||||
@@ -143,7 +143,7 @@ func TestAbortContextWithFetch(t *testing.T) {
|
||||
}))
|
||||
defer server.Close()
|
||||
|
||||
fetch := BindFetch(vm, []string{"*"})
|
||||
fetch := BindFetch("", vm, []string{"*"})
|
||||
defer fetch.Close()
|
||||
|
||||
val, err := vm.RunString(fmt.Sprintf(`
|
||||
@@ -183,7 +183,7 @@ func TestAbortContextWithFetch(t *testing.T) {
|
||||
}))
|
||||
defer server.Close()
|
||||
|
||||
fetch := BindFetch(vm, []string{"*"})
|
||||
fetch := BindFetch("", vm, []string{"*"})
|
||||
defer fetch.Close()
|
||||
|
||||
val, err := vm.RunString(fmt.Sprintf(`
|
||||
|
||||
@@ -361,7 +361,7 @@ func TestIsURLAllowed(t *testing.T) {
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
f := NewFetch(vm, tt.allowedDomains)
|
||||
f := NewFetch("", vm, tt.allowedDomains)
|
||||
result := f.isURLAllowed(tt.url)
|
||||
if result != tt.expected {
|
||||
t.Errorf("isURLAllowed(%q) with domains %v = %v, expected %v",
|
||||
|
||||
@@ -906,14 +906,15 @@ func shouldRefreshSimulatedMedia(entryStatus *anilist.MediaListStatus, mediaStat
|
||||
return false
|
||||
}
|
||||
|
||||
// todo: expand when anilist rate limits are less dogshit
|
||||
switch *entryStatus {
|
||||
case anilist.MediaListStatusCurrent, anilist.MediaListStatusPlanning:
|
||||
case anilist.MediaListStatusCurrent:
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
||||
switch *mediaStatus {
|
||||
case anilist.MediaStatusReleasing, anilist.MediaStatusNotYetReleased:
|
||||
case anilist.MediaStatusReleasing:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
||||
9983
internal/util/user_agent_list.go
Normal file
9983
internal/util/user_agent_list.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user