Skip to content

Commit

Permalink
tiny simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Oct 23, 2019
1 parent 6cb84ef commit 8a7a7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Player/YouTuber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ std::vector<std::string> ParsePlaylist(std::string url, bool force)
{
std::istringstream ss(url);
std::string result;
std::getline(ss, result, ' ');
ss >> result;
result = urlencode(result);
std::string buffer;
while (std::getline(ss, buffer, ' '))
while (ss >> buffer)
{
if (!buffer.empty())
result += '+' + urlencode(buffer);
Expand Down

0 comments on commit 8a7a7ba

Please sign in to comment.