# Path: dj/scripts/post_blip.py
# class post(process):
#   def process_ep(self, ep):
#   def add_more_options(self, parser):


import os
import xml.etree.ElementTree
from . import blip_uploader
from .post_blip import roles
from . import pw
from process import process
from main.models import Episode
#!/usr/bin/python

# ckblip.py
# checks metadata on blib
# like 'is there a flash version?'
# or 'if a format is not on blip, is it local?'
# and maybe upload it.

# and maybe delete it:
# if the .fvl is not the same file size as the local copy on disk,
# delete the one on blip.





class ckblip(process):

  last_del_id=None

  def post(self, ep, file_types_to_upload, user, password ):

    blip_cli=blip_uploader.Blip_CLI()

    files = []
    for ext in file_types_to_upload:

# Path: dj/scripts/post_blip.py
# class post(process):
#   def process_ep(self, ep):
#   def add_more_options(self, parser):


# Path: dj/scripts/ckblip.py
import os
import xml.etree.ElementTree
from . import blip_uploader
from .post_blip import roles
from . import pw
from process import process
from main.models import Episode

#!/usr/bin/python

# ckblip.py
# checks metadata on blib
# like 'is there a flash version?'
# or 'if a format is not on blip, is it local?'
# and maybe upload it.

# and maybe delete it:
# if the .fvl is not the same file size as the local copy on disk,
# delete the one on blip.





class ckblip(process):

  last_del_id=None

  def post(self, ep, file_types_to_upload, user, password ):

    blip_cli=blip_uploader.Blip_CLI()

    files = []
    for ext in file_types_to_upload:

        role=roles.get(ext, {'description':"extra",'num':'9'})