Using the mime type command in the command line returns the video as
app/ogg, which would fail to upload even though it is a video, this is a
quick fix not sure how else to make the upload go
On Nov 28, 2013 9:16 PM, "Michael Tom-Wing" <notifications@github.com>
wrote:

> In src/freeseer/framework/youtube.py:
>
> > +        body = dict(
> > +            snippet=dict(
> > +                title=metadata['title'],
> > +                description=metadata['description'],
> > +                tags=metadata['tags'],
> > +                categoryId=metadata['categoryId']
> > +            ),
> > +            status=dict(
> > +                privacyStatus="public",
> > +                license="creativeCommon",
> > +                embeddable=True,
> > +                publicStatsViewable=True
> > +            )
> > +        )
> > +        # this is to fix a bug, the API thinks our .ogg files are audio/ogg
> > +        mimetype = 'video/%s' % video_file.split(".")[-1]
>
> Would it be possible to read the headers of the file to determine mimetype?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Freeseer/freeseer/pull/402/files#r7994204>
> .
>