forked from sergiotarxz/Peertube-dl
18 lines
264 B
Perl
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;
|