diff options
Diffstat (limited to 'server/tools/peertube-import-videos.ts')
-rw-r--r-- | server/tools/peertube-import-videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 3fb9979df..7f3b58bba 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -274,7 +274,7 @@ async function getCategory (categories: string[], url: string) { | |||
274 | function getLicence (licence: string) { | 274 | function getLicence (licence: string) { |
275 | if (!licence) return undefined | 275 | if (!licence) return undefined |
276 | 276 | ||
277 | if (licence.indexOf('Creative Commons Attribution licence') !== -1) return 1 | 277 | if (licence.includes('Creative Commons Attribution licence')) return 1 |
278 | 278 | ||
279 | return undefined | 279 | return undefined |
280 | } | 280 | } |