Skip to content

Commit

Permalink
Serve videos over https
Browse files Browse the repository at this point in the history
  • Loading branch information
Razvan Nesiu committed Jun 13, 2019
1 parent eaababb commit 990564d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Migration(migrations.Migration):

dependencies = [
('dispatch', '0023_publishable_constraints_default'),
('dispatch', '0021_podcast_fields'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def remove_duplicates(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('dispatch', '0021_podcast_fields'),
('dispatch', '0022_video_meta_fields'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Migration(migrations.Migration):

dependencies = [
('dispatch', '0022_publishable_constraints'),
('dispatch', '0023_publishable_constraints'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function VideoForm(props) {
{props.listItem.url &&
<div className='c-image-panel-image-page'>
<div className='c-image-panel__image'>
<img className='c-image-panel__image__img' src={`http://img.youtube.com/vi/${props.listItem.url.split('v=')[1]}/0.jpg`} />
<img className='c-image-panel__image__img' src={`https://img.youtube.com/vi/${props.listItem.url.split('v=')[1]}/0.jpg`} />
</div>
</div>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class VideoEmbedComponent extends React.Component {
<div>
<img
className='o-embed--video__image'
src={`http://img.youtube.com/vi/${this.props.data.id}/0.jpg`} />
src={`https://img.youtube.com/vi/${this.props.data.id}/0.jpg`} />
<Form.Container>
<Form.Input label='Title'>
<TextInput
Expand Down
4 changes: 2 additions & 2 deletions dispatch/templatetags/dispatch_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def youtube_embed_id(url):
urlParts = url.split("?v=")
if len(urlParts) > 1:
# embed_url = 'http://www.youtube.com/embed/%s' %(match.group(2))
# embed_url = 'https://www.youtube.com/embed/%s' %(match.group(2))
return urlParts[1]
return ''

Expand All @@ -17,7 +17,7 @@ def youtube_embed_id(url):
def youtube_embed_url(url):
urlParts = url.split("?v=")
if len(urlParts) > 1:
embed_url = 'http://www.youtube.com/embed/%s' %(urlParts[1])
embed_url = 'https://www.youtube.com/embed/%s' %(urlParts[1])

return embed_url
return ''
Expand Down

0 comments on commit 990564d

Please sign in to comment.