def main(src_repo, dest_repo):
    src_paths = MediaFilePaths(src_repo)
    dest_paths = MediaFilePaths(dest_repo)
    for line in sys.stdin:
        line = line.strip()
        parts = line.split('|')
        if (len(parts) != 2):
            print(('Unable to parse input line %s' % line), file=sys.stderr)
            exit(1)
        move_media(parts[0], parts[1], src_paths, dest_paths)
def main(src_repo, dest_repo):
    src_paths = MediaFilePaths(src_repo)
    dest_paths = MediaFilePaths(dest_repo)
    for line in sys.stdin:
        line = line.strip()
        parts = line.split('|')
        if (len(parts) != 2):
            print(('Unable to parse input line %s' % line), file=sys.stderr)
            exit(1)
        move_media(parts[0], parts[1], src_paths, dest_paths)