You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
569 B
16 lines
569 B
from Orm import SrtFile
|
|
|
|
|
|
class SrtService:
|
|
def createOne(videoId, channelId, ordinal, srtStartTime, srtEndTime, srtText):
|
|
SrtFile.create(videoId=videoId,
|
|
channelId=channelId,
|
|
ordinal=ordinal,
|
|
srtStartTime=srtStartTime,
|
|
srtEndTime=srtEndTime,
|
|
srtText=srtText,
|
|
isScan=0)
|
|
|
|
def checkByVideoId(videoId):
|
|
list = SrtFile.select().where(SrtFile.videoId == videoId).limit(10).execute()
|
|
return len(list) > 0
|
|
|