bugfixes
This commit is contained in:
parent
baa66cabcf
commit
5a46814039
@ -94,23 +94,6 @@ const countryOfPending = (
|
|||||||
).trim()
|
).trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
const isChaturbateJob = (
|
|
||||||
job: RecordJob,
|
|
||||||
modelsByKey?: Record<string, { imageUrl?: string }>
|
|
||||||
): boolean => {
|
|
||||||
const anyJ = job as any
|
|
||||||
const src = String(anyJ?.sourceUrl ?? anyJ?.SourceURL ?? '').toLowerCase()
|
|
||||||
const chat = String(anyJ?.modelChatRoomUrl ?? '').toLowerCase()
|
|
||||||
const img = onlineImageUrlOfJob(job, modelsByKey).toLowerCase()
|
|
||||||
|
|
||||||
return (
|
|
||||||
src.includes('chaturbate.com') ||
|
|
||||||
chat.includes('chaturbate.com') ||
|
|
||||||
img.includes('highwebmedia') ||
|
|
||||||
img.includes('chaturbate')
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const previewInitialSrcOfJob = (
|
const previewInitialSrcOfJob = (
|
||||||
job: RecordJob,
|
job: RecordJob,
|
||||||
modelsByKey?: Record<string, { imageUrl?: string }>
|
modelsByKey?: Record<string, { imageUrl?: string }>
|
||||||
|
|||||||
@ -130,23 +130,6 @@ const modelKeyFromJob = (job: RecordJob): string => {
|
|||||||
return String(modelNameFromOutput(j.output || '')).trim().toLowerCase()
|
return String(modelNameFromOutput(j.output || '')).trim().toLowerCase()
|
||||||
}
|
}
|
||||||
|
|
||||||
const isChaturbateJob = (
|
|
||||||
job: RecordJob,
|
|
||||||
modelsByKey?: Record<string, { imageUrl?: string }>
|
|
||||||
): boolean => {
|
|
||||||
const anyJ = job as any
|
|
||||||
const src = String(anyJ?.sourceUrl ?? anyJ?.SourceURL ?? '').toLowerCase()
|
|
||||||
const chat = String(anyJ?.modelChatRoomUrl ?? '').toLowerCase()
|
|
||||||
const img = onlineImageUrlOfJob(job, modelsByKey).toLowerCase()
|
|
||||||
|
|
||||||
return (
|
|
||||||
src.includes('chaturbate.com') ||
|
|
||||||
chat.includes('chaturbate.com') ||
|
|
||||||
img.includes('highwebmedia') ||
|
|
||||||
img.includes('chaturbate')
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const previewInitialSrcOfJob = (
|
const previewInitialSrcOfJob = (
|
||||||
job: RecordJob,
|
job: RecordJob,
|
||||||
modelsByKey?: Record<string, { imageUrl?: string }>
|
modelsByKey?: Record<string, { imageUrl?: string }>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user