Module Import alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Import alias identifier Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad NameLoad Str Assign NameStore Num For NameStore NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt BinOpDiv NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Break Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Continue orelse Assign NameStore BinOpAdd NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index BinOpSub Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str attr Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A os sys traceback video.management.commands.sub_commands SubCommand django.contrib.contenttypes.models ContentType committees.models Committee video.models Video video.utils get_videos_queryset DownloadCommitteesVideos N/A SubCommand N/A __init__ N/A N/A self command mms mb_quota N/A None None N/A N/A N/A mms None N/A N/A video.utils.mms mms N/A N/A N/A SubCommand __init__ self command N/A N/A N/A self _verifyDataDir N/A videos N/A N/A self _getVideosToDownload N/A N/A N/A self _debug N/A N/A got  N/A str N/A len videos  videos from db that needs to be downloaded N/A total_bytes 0 N/A video videos N/A N/A N/A N/A mb_quota None N/A N/A total_bytes 1000000 mb_quota N/A N/A N/A N/A self _warn N/A N/A reached mb quota of  N/A str mb_quota mb N/A N/A N/A N/A self _check_timer N/A url N/A video embed_link N/A N/A N/A self _debug N/A downloading video -  url N/A filename N/A N/A N/A N/A self _get_data_root committee_mms_videos/ N/A N/A self _getFilenameFromUrl url N/A N/A N/A self _isAlreadyDownloaded filename N/A N/A N/A N/A self _debug N/A file already downloaded:  filename N/A total_bytes N/A total_bytes N/A N/A self _getFileSize filename N/A N/A N/A partfilename N/A filename .part N/A N/A N/A streamsize N/A N/A mms get_size url N/A N/A N/A Exception N/A e N/A N/A N/A N/A self _warn N/A failed to get mms stream size, exception =  N/A str e N/A N/A N/A traceback print_exc file N/A sys stdout N/A N/A N/A N/A self _debug N/A got mms stream size =  N/A str streamsize N/A mins_remaining N/A round N/A N/A N/A self _timer_remaining 60 N/A downloaded False N/A N/A N/A self _isAlreadyDownloaded partfilename N/A N/A filesize N/A N/A self _getFileSize partfilename N/A N/A filesize streamsize N/A N/A N/A N/A self _debug resuming download N/A N/A N/A isDownloadDone N/A N/A mms resume_download url partfilename mins_remaining N/A downloaded True N/A N/A N/A Exception N/A e N/A N/A N/A N/A self _warn N/A failed to resume mms download, exception =  N/A str e N/A N/A N/A traceback print_exc file N/A sys stdout N/A N/A N/A N/A self _debug starting new download N/A N/A N/A isDownloadDone N/A N/A mms download url partfilename mins_remaining N/A downloaded True N/A N/A N/A Exception N/A e N/A N/A N/A N/A self _warn N/A failed to resume mms download, exception =  N/A str e N/A N/A N/A traceback print_exc file N/A sys stdout N/A downloaded N/A N/A N/A N/A self _check_timer N/A filesize N/A N/A self _getDownloadedFileSize partfilename N/A N/A N/A self _debug N/A downloaded file size:  N/A str filesize N/A isDownloadDone N/A N/A N/A N/A self _renameFile partfilename filename N/A N/A N/A self _debug N/A finished downloading:  filename N/A total_bytes N/A total_bytes filesize N/A _verifyDataDir N/A N/A self N/A N/A N/A N/A N/A N/A N/A os path exists N/A N/A N/A self _get_data_root committee_mms_videos N/A N/A N/A N/A os makedirs N/A N/A N/A self _get_data_root committee_mms_videos N/A _getFilenameFromUrl N/A N/A self url N/A N/A N/A filename N/A N/A url split / N/A filename N/A filename N/A N/A N/A len filename 1 N/A filename N/A _getVideosToDownload N/A N/A self N/A N/A N/A ret N/A N/A object_type N/A N/A N/A ContentType objects get_for_model Committee N/A videos N/A N/A N/A N/A N/A Video objects filter content_type__pk N/A object_type id group mms order_by id N/A video videos N/A N/A qs N/A get_videos_queryset video group youtube_upload ignoreHide True N/A N/A N/A N/A qs count 0 N/A N/A N/A N/A ret append video N/A ret N/A _isAlreadyDownloaded N/A N/A self filename N/A N/A N/A N/A N/A N/A os path exists filename N/A _getFileSize N/A N/A self filename N/A N/A N/A N/A N/A N/A os path getsize filename N/A _getDownloadedFileSize N/A N/A self filename N/A N/A N/A N/A N/A self _getFileSize filename N/A _renameFile N/A N/A self filename newfilename N/A N/A N/A N/A N/A os rename filename newfilename N/A N/A