used periscope code to test opensubtitles functionality