Giter Site home page Giter Site logo

republish-videos's Introduction

Video republishing script

This is a one-time-use republishing script for videos existing in Universal Publishing Platform.

We force-notify brightcove-notifier and brightcove-metadata-notifier, they will fetch the everything from Brightcove and send them through our publishing pipelines.

After this we will have their native form in the native stores, and we could have a Jenkins job for republishing individual videos. In that future case we will not have to go to Brightcove, just take the native content from nativerw and post to notifiers.

Explanation

To publish one video you would need to call two endpoints of our publishing stack for content and metadata. To show you how, here are two curl commands:

  1. curl -i -XPOST -H"Authorization: Basic aBc..." "https://pub-prod-uk-up.ft.com/__brightcove-notifier/forece-notify/5090624180001"
  2. curl -i -XPOST -H"Authorization: Basic aBc..." "https://pub-prod-uk-up.ft.com/__brightcove-metadata-preprocessor/forece-notify/5090624180001"

To obtain all the ids of videos you must query our database. Useful queries and commands can be found in the help-in-detail.md file.

Usage

Command line arguments are: publishing environment tag, file containing the video id list, basic authentication for the CoCo cluster, parallelism factor: how many parallel requests

ruby republish-videos.rb pub-prod-uk identifiers.txt "Basic dXB..." 16 > republish-videos.log

It's strongly recommended to save the output to a file, for after analysis.

Input file format

example:

1000142350001
1000147905001
1000147915001
1000596923001
1001049056001
1002020647001
1005835904001
1006678550001
1007994235001
1008118387001

Output format

example:

date='2016-09-07 13:22:36 +0300' thread=5 n=0 tid=republish-video-1002020647001 path='/force-notify/1002020647001' resp=200
date='2016-09-07 13:22:36 +0300' thread=12 n=0 tid=republish-video-1009492286001 path='/force-notify/1009492286001' resp=200
date='2016-09-07 13:22:36 +0300' thread=1 n=0 tid=republish-video-1000147905001 path='/force-notify/1000147905001' resp=200
date='2016-09-07 13:22:36 +0300' thread=13 n=0 tid=republish-video-1010353240001 path='/force-notify/1010353240001' resp=200
date='2016-09-07 13:22:36 +0300' thread=15 n=0 tid=republish-video-1010476986001 path='/force-notify/1010476986001' resp=200
date='2016-09-07 13:22:36 +0300' thread=9 n=0 tid=republish-video-1008118387001 path='/force-notify/1008118387001' resp=200
date='2016-09-07 13:22:36 +0300' thread=14 n=0 tid=republish-video-1010355857001 path='/force-notify/1010355857001' resp=200
date='2016-09-07 13:22:36 +0300' thread=3 n=0 tid=republish-video-1000596923001 path='/force-notify/1000596923001' resp=200
date='2016-09-07 13:22:36 +0300' thread=11 n=0 tid=republish-video-1009246281001 path='/force-notify/1009246281001' resp=200
date='2016-09-07 13:22:36 +0300' thread=4 n=0 tid=republish-video-1001049056001 path='/force-notify/1001049056001' resp=200

republish-videos's People

Contributors

kovacshuni avatar

Watchers

James Cloos avatar Iulian Popa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.