updated ox

This commit is contained in:
Sanj 2012-09-19 20:32:44 +05:30
parent 61c3684ad5
commit 33788b2da7

View File

@ -1,12 +1,13 @@
from django.contrib.gis.db import models
import oxlib
#import oxlib
import ox
import flickr
import settings
try:
import json
except:
import simplejson as json
from oxweb import youtube
from ox.web import youtube
from settings import MEDIA_URL
from os.path import join
@ -106,7 +107,7 @@ class Video(models.Model):
def get_youtube_id(self):
reg = r'http.*?v=(.*?)$'
return oxlib.findRe(self.url, reg)
return ox.text.find_re(self.url, reg)
def get_dict(self):
if self.youtubeData != '':