Compare commits
2 commits
09e3f2bc7d
...
61dd667a71
| Author | SHA1 | Date | |
|---|---|---|---|
| 61dd667a71 | |||
| ce27979259 |
2 changed files with 3 additions and 3 deletions
|
|
@ -640,8 +640,8 @@ class Item(models.Model):
|
|||
if self.poster_height:
|
||||
i['posterRatio'] = self.poster_width / self.poster_height
|
||||
|
||||
if keys and 'source' in keys:
|
||||
i['source'] = self.streams().exclude(file__data='').exists()
|
||||
if keys and 'hasSource' in keys:
|
||||
i['hasSource'] = self.streams().exclude(file__data='').exists()
|
||||
|
||||
streams = self.streams()
|
||||
i['durations'] = [s.duration for s in streams]
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from datetime import timedelta, datetime
|
||||
from urllib.parse import quote
|
||||
import xml.etree.ElementTree as ET
|
||||
import gzip
|
||||
import os
|
||||
import random
|
||||
|
|
@ -12,7 +13,6 @@ from celery.schedules import crontab
|
|||
from django.conf import settings
|
||||
from django.db import connection, transaction
|
||||
from django.db.models import Q
|
||||
from ox.utils import ET
|
||||
|
||||
from app.utils import limit_rate
|
||||
from taskqueue.models import Task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue