Commit a88fda77 authored by Paweł Wegner's avatar Paweł Wegner
Browse files

YouTube: updated descrambler.

parent 35401f4b
...@@ -117,7 +117,7 @@ EitherError<std::string> descramble(const std::string& scrambled, ...@@ -117,7 +117,7 @@ EitherError<std::string> descramble(const std::string& scrambled,
std::stringstream& stream) { std::stringstream& stream) {
auto find_descrambler = [](std::stringstream& stream) { auto find_descrambler = [](std::stringstream& stream) {
auto player = stream.str(); auto player = stream.str();
const std::string descrambler_search = ".set(\"signature\","; const std::string descrambler_search = "\"signature\":\"sig\";c=";
auto it = player.find(descrambler_search); auto it = player.find(descrambler_search);
if (it == std::string::npos) if (it == std::string::npos)
throw std::logic_error("can't find descrambler name"); throw std::logic_error("can't find descrambler name");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment