mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-21 06:54:08 -07:00
Move makeSlug to function
This commit is contained in:
parent
d1cb178be1
commit
00f1f1397c
5 changed files with 17 additions and 30 deletions
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
import slugify from 'slugify'
|
||||
import axios from 'axios'
|
||||
|
||||
import { fuzzyMatchesWholeWord } from './matching.js'
|
||||
import { byTimeThenNull } from './sort-list.js'
|
||||
import { getVideoEndpoint } from './app-derived.js'
|
||||
import parseDate from './parse-date'
|
||||
import { makeSlug } from './slug.js'
|
||||
|
||||
|
||||
const inTimestamps = ( name, video ) => {
|
||||
|
|
@ -150,10 +150,7 @@ export default async function ( applist ) {
|
|||
if (fetchedVideos[videoId].title === 'Deleted video') continue
|
||||
|
||||
// Build video slug
|
||||
const slug = slugify(`${fetchedVideos[videoId].title}-i-${videoId}`, {
|
||||
lower: true,
|
||||
strict: true
|
||||
})
|
||||
const slug = makeSlug( `${fetchedVideos[videoId].title}-i-${videoId}` )
|
||||
|
||||
const apps = []
|
||||
// Generate new tag set based on api data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue