Peertube-dl/lib/Peertube/DL/Utils.pm
2020-12-26 06:18:43 +01:00

18 lines
264 B
Perl

package Peertube::DL::Utils;
use strict;
use warnings;
use feature 'say';
use URI::Encode;
sub uri_encode {
return map { URI::Encode::uri_encode($_) =~ s/ /+/rg } @_;
}
sub uri_decode {
return map { URI::Encode::uri_decode($_) =~ s/\+/ /rg } @_;
}
1;