2017-09-03 08:04:18 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Mauricio Colli <mauriciocolli@outlook.com>
|
2021-01-10 14:13:20 +01:00
|
|
|
* ExtractorHelper.java is part of NewPipe
|
2017-09-03 08:04:18 +02:00
|
|
|
*
|
|
|
|
* License: GPL-3.0+
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package org.schabi.newpipe.util;
|
|
|
|
|
2018-01-23 01:40:00 +01:00
|
|
|
import android.content.Context;
|
2017-09-03 08:04:18 +02:00
|
|
|
import android.util.Log;
|
2020-12-20 15:05:37 +01:00
|
|
|
import android.view.View;
|
|
|
|
import android.widget.TextView;
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2020-12-20 15:05:37 +01:00
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.core.text.HtmlCompat;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.MainActivity;
|
2018-01-23 01:40:00 +01:00
|
|
|
import org.schabi.newpipe.R;
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.extractor.Info;
|
2018-09-23 03:32:19 +02:00
|
|
|
import org.schabi.newpipe.extractor.InfoItem;
|
2018-03-18 16:37:49 +01:00
|
|
|
import org.schabi.newpipe.extractor.ListExtractor.InfoItemsPage;
|
2019-12-16 08:36:04 +01:00
|
|
|
import org.schabi.newpipe.extractor.ListInfo;
|
2020-12-20 15:05:37 +01:00
|
|
|
import org.schabi.newpipe.extractor.MetaInfo;
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.extractor.NewPipe;
|
2020-04-15 15:31:53 +02:00
|
|
|
import org.schabi.newpipe.extractor.Page;
|
2019-12-16 08:36:04 +01:00
|
|
|
import org.schabi.newpipe.extractor.StreamingService;
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.extractor.channel.ChannelInfo;
|
2018-09-23 03:32:19 +02:00
|
|
|
import org.schabi.newpipe.extractor.comments.CommentsInfo;
|
2019-12-16 08:36:04 +01:00
|
|
|
import org.schabi.newpipe.extractor.feed.FeedExtractor;
|
|
|
|
import org.schabi.newpipe.extractor.feed.FeedInfo;
|
2017-09-23 17:39:04 +02:00
|
|
|
import org.schabi.newpipe.extractor.kiosk.KioskInfo;
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.extractor.playlist.PlaylistInfo;
|
2018-07-08 14:27:12 +02:00
|
|
|
import org.schabi.newpipe.extractor.search.SearchInfo;
|
2017-09-03 08:04:18 +02:00
|
|
|
import org.schabi.newpipe.extractor.stream.StreamInfo;
|
2019-12-16 08:36:04 +01:00
|
|
|
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
|
|
|
|
import org.schabi.newpipe.extractor.suggestion.SuggestionExtractor;
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2018-12-23 22:07:27 +01:00
|
|
|
import java.util.Collections;
|
2017-09-03 08:04:18 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2020-10-31 21:55:45 +01:00
|
|
|
import io.reactivex.rxjava3.core.Maybe;
|
|
|
|
import io.reactivex.rxjava3.core.Single;
|
2021-01-15 20:57:19 +01:00
|
|
|
import io.reactivex.rxjava3.disposables.Disposable;
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2020-12-20 15:05:37 +01:00
|
|
|
import static org.schabi.newpipe.extractor.utils.Utils.isNullOrEmpty;
|
|
|
|
|
2017-09-03 08:04:18 +02:00
|
|
|
public final class ExtractorHelper {
|
|
|
|
private static final String TAG = ExtractorHelper.class.getSimpleName();
|
2020-03-31 19:20:15 +02:00
|
|
|
private static final InfoCache CACHE = InfoCache.getInstance();
|
2017-09-03 08:04:18 +02:00
|
|
|
|
|
|
|
private ExtractorHelper() {
|
|
|
|
//no instance
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
private static void checkServiceId(final int serviceId) {
|
2018-09-03 01:22:59 +02:00
|
|
|
if (serviceId == Constants.NO_SERVICE_ID) {
|
2017-10-08 21:04:37 +02:00
|
|
|
throw new IllegalArgumentException("serviceId is NO_SERVICE_ID");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<SearchInfo> searchFor(final int serviceId, final String searchString,
|
2018-07-10 16:26:42 +02:00
|
|
|
final List<String> contentFilter,
|
2018-10-05 16:19:21 +02:00
|
|
|
final String sortFilter) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-01-20 13:57:31 +01:00
|
|
|
return Single.fromCallable(() ->
|
2020-03-31 19:20:15 +02:00
|
|
|
SearchInfo.getInfo(NewPipe.getService(serviceId),
|
|
|
|
NewPipe.getService(serviceId)
|
|
|
|
.getSearchQHFactory()
|
|
|
|
.fromQuery(searchString, contentFilter, sortFilter)));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2018-03-18 16:37:49 +01:00
|
|
|
public static Single<InfoItemsPage> getMoreSearchItems(final int serviceId,
|
2018-07-10 16:26:42 +02:00
|
|
|
final String searchString,
|
|
|
|
final List<String> contentFilter,
|
|
|
|
final String sortFilter,
|
2020-04-15 15:31:53 +02:00
|
|
|
final Page page) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-07-08 14:27:12 +02:00
|
|
|
return Single.fromCallable(() ->
|
2018-07-10 16:26:42 +02:00
|
|
|
SearchInfo.getMoreItems(NewPipe.getService(serviceId),
|
|
|
|
NewPipe.getService(serviceId)
|
2020-03-31 19:20:15 +02:00
|
|
|
.getSearchQHFactory()
|
2020-04-15 15:31:53 +02:00
|
|
|
.fromQuery(searchString, contentFilter, sortFilter), page));
|
2018-07-08 14:27:12 +02:00
|
|
|
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<List<String>> suggestionsFor(final int serviceId, final String query) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-12-23 22:07:27 +01:00
|
|
|
return Single.fromCallable(() -> {
|
2020-08-16 10:24:58 +02:00
|
|
|
final SuggestionExtractor extractor = NewPipe.getService(serviceId)
|
2018-12-23 22:07:27 +01:00
|
|
|
.getSuggestionExtractor();
|
|
|
|
return extractor != null
|
|
|
|
? extractor.suggestionList(query)
|
|
|
|
: Collections.emptyList();
|
|
|
|
});
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<StreamInfo> getStreamInfo(final int serviceId, final String url,
|
|
|
|
final boolean forceLoad) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2020-03-31 19:20:15 +02:00
|
|
|
return checkCache(forceLoad, serviceId, url, InfoItem.InfoType.STREAM,
|
|
|
|
Single.fromCallable(() -> StreamInfo.getInfo(NewPipe.getService(serviceId), url)));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<ChannelInfo> getChannelInfo(final int serviceId, final String url,
|
|
|
|
final boolean forceLoad) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2020-03-31 19:20:15 +02:00
|
|
|
return checkCache(forceLoad, serviceId, url, InfoItem.InfoType.CHANNEL,
|
|
|
|
Single.fromCallable(() ->
|
|
|
|
ChannelInfo.getInfo(NewPipe.getService(serviceId), url)));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<InfoItemsPage> getMoreChannelItems(final int serviceId, final String url,
|
2020-04-15 15:31:53 +02:00
|
|
|
final Page nextPage) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-01-20 13:57:31 +01:00
|
|
|
return Single.fromCallable(() ->
|
2020-04-15 15:31:53 +02:00
|
|
|
ChannelInfo.getMoreItems(NewPipe.getService(serviceId), url, nextPage));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<ListInfo<StreamInfoItem>> getFeedInfoFallbackToChannelInfo(
|
|
|
|
final int serviceId, final String url) {
|
2019-12-16 08:36:04 +01:00
|
|
|
final Maybe<ListInfo<StreamInfoItem>> maybeFeedInfo = Maybe.fromCallable(() -> {
|
|
|
|
final StreamingService service = NewPipe.getService(serviceId);
|
|
|
|
final FeedExtractor feedExtractor = service.getFeedExtractor(url);
|
|
|
|
|
|
|
|
if (feedExtractor == null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return FeedInfo.getInfo(feedExtractor);
|
|
|
|
});
|
|
|
|
|
|
|
|
return maybeFeedInfo.switchIfEmpty(getChannelInfo(serviceId, url, true));
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<CommentsInfo> getCommentsInfo(final int serviceId, final String url,
|
|
|
|
final boolean forceLoad) {
|
2018-09-23 03:32:19 +02:00
|
|
|
checkServiceId(serviceId);
|
2020-03-31 19:20:15 +02:00
|
|
|
return checkCache(forceLoad, serviceId, url, InfoItem.InfoType.COMMENT,
|
|
|
|
Single.fromCallable(() ->
|
|
|
|
CommentsInfo.getInfo(NewPipe.getService(serviceId), url)));
|
2018-09-23 03:32:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static Single<InfoItemsPage> getMoreCommentItems(final int serviceId,
|
|
|
|
final CommentsInfo info,
|
2020-04-15 15:31:53 +02:00
|
|
|
final Page nextPage) {
|
2018-09-23 03:32:19 +02:00
|
|
|
checkServiceId(serviceId);
|
|
|
|
return Single.fromCallable(() ->
|
2020-04-15 15:31:53 +02:00
|
|
|
CommentsInfo.getMoreItems(NewPipe.getService(serviceId), info, nextPage));
|
2018-09-23 03:32:19 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<PlaylistInfo> getPlaylistInfo(final int serviceId, final String url,
|
|
|
|
final boolean forceLoad) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2020-03-31 19:20:15 +02:00
|
|
|
return checkCache(forceLoad, serviceId, url, InfoItem.InfoType.PLAYLIST,
|
|
|
|
Single.fromCallable(() ->
|
|
|
|
PlaylistInfo.getInfo(NewPipe.getService(serviceId), url)));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<InfoItemsPage> getMorePlaylistItems(final int serviceId, final String url,
|
2020-04-15 15:31:53 +02:00
|
|
|
final Page nextPage) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-01-20 13:57:31 +01:00
|
|
|
return Single.fromCallable(() ->
|
2020-04-15 15:31:53 +02:00
|
|
|
PlaylistInfo.getMoreItems(NewPipe.getService(serviceId), url, nextPage));
|
2017-09-23 17:39:04 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static Single<KioskInfo> getKioskInfo(final int serviceId, final String url,
|
|
|
|
final boolean forceLoad) {
|
|
|
|
return checkCache(forceLoad, serviceId, url, InfoItem.InfoType.PLAYLIST,
|
|
|
|
Single.fromCallable(() -> KioskInfo.getInfo(NewPipe.getService(serviceId), url)));
|
2017-09-23 17:39:04 +02:00
|
|
|
}
|
|
|
|
|
2020-04-15 15:31:53 +02:00
|
|
|
public static Single<InfoItemsPage> getMoreKioskItems(final int serviceId, final String url,
|
|
|
|
final Page nextPage) {
|
2018-01-20 13:57:31 +01:00
|
|
|
return Single.fromCallable(() ->
|
2020-04-15 15:31:53 +02:00
|
|
|
KioskInfo.getMoreItems(NewPipe.getService(serviceId), url, nextPage));
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*//////////////////////////////////////////////////////////////////////////
|
|
|
|
// Utils
|
|
|
|
//////////////////////////////////////////////////////////////////////////*/
|
|
|
|
|
|
|
|
/**
|
2018-01-20 13:57:31 +01:00
|
|
|
* Check if we can load it from the cache (forceLoad parameter), if we can't,
|
|
|
|
* load from the network (Single loadFromNetwork)
|
2017-09-03 08:04:18 +02:00
|
|
|
* and put the results in the cache.
|
2020-03-31 19:20:15 +02:00
|
|
|
*
|
|
|
|
* @param <I> the item type's class that extends {@link Info}
|
|
|
|
* @param forceLoad whether to force loading from the network instead of from the cache
|
|
|
|
* @param serviceId the service to load from
|
|
|
|
* @param url the URL to load
|
|
|
|
* @param infoType the {@link InfoItem.InfoType} of the item
|
|
|
|
* @param loadFromNetwork the {@link Single} to load the item from the network
|
|
|
|
* @return a {@link Single} that loads the item
|
2017-09-03 08:04:18 +02:00
|
|
|
*/
|
2020-03-31 19:20:15 +02:00
|
|
|
private static <I extends Info> Single<I> checkCache(final boolean forceLoad,
|
|
|
|
final int serviceId, final String url,
|
|
|
|
final InfoItem.InfoType infoType,
|
|
|
|
final Single<I> loadFromNetwork) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2020-08-16 10:24:58 +02:00
|
|
|
final Single<I> actualLoadFromNetwork = loadFromNetwork
|
2020-03-31 19:20:15 +02:00
|
|
|
.doOnSuccess(info -> CACHE.putInfo(serviceId, url, info, infoType));
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2020-08-16 10:24:58 +02:00
|
|
|
final Single<I> load;
|
2017-09-03 08:04:18 +02:00
|
|
|
if (forceLoad) {
|
2020-03-31 19:20:15 +02:00
|
|
|
CACHE.removeInfo(serviceId, url, infoType);
|
|
|
|
load = actualLoadFromNetwork;
|
2017-09-03 08:04:18 +02:00
|
|
|
} else {
|
2018-09-29 12:16:47 +02:00
|
|
|
load = Maybe.concat(ExtractorHelper.loadFromCache(serviceId, url, infoType),
|
2020-03-31 19:20:15 +02:00
|
|
|
actualLoadFromNetwork.toMaybe())
|
|
|
|
.firstElement() // Take the first valid
|
2017-09-03 08:04:18 +02:00
|
|
|
.toSingle();
|
|
|
|
}
|
|
|
|
|
|
|
|
return load;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-03-31 19:20:15 +02:00
|
|
|
* Default implementation uses the {@link InfoCache} to get cached results.
|
|
|
|
*
|
|
|
|
* @param <I> the item type's class that extends {@link Info}
|
|
|
|
* @param serviceId the service to load from
|
|
|
|
* @param url the URL to load
|
|
|
|
* @param infoType the {@link InfoItem.InfoType} of the item
|
|
|
|
* @return a {@link Single} that loads the item
|
2017-09-03 08:04:18 +02:00
|
|
|
*/
|
2020-04-15 15:31:53 +02:00
|
|
|
private static <I extends Info> Maybe<I> loadFromCache(final int serviceId, final String url,
|
|
|
|
final InfoItem.InfoType infoType) {
|
2017-10-08 21:04:37 +02:00
|
|
|
checkServiceId(serviceId);
|
2018-01-20 13:57:31 +01:00
|
|
|
return Maybe.defer(() -> {
|
2018-09-03 01:22:59 +02:00
|
|
|
//noinspection unchecked
|
2020-08-16 10:24:58 +02:00
|
|
|
final I info = (I) CACHE.getFromKey(serviceId, url, infoType);
|
2020-03-31 19:20:15 +02:00
|
|
|
if (MainActivity.DEBUG) {
|
|
|
|
Log.d(TAG, "loadFromCache() called, info > " + info);
|
|
|
|
}
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2018-09-03 01:22:59 +02:00
|
|
|
// Only return info if it's not null (it is cached)
|
|
|
|
if (info != null) {
|
|
|
|
return Maybe.just(info);
|
|
|
|
}
|
2017-09-03 08:04:18 +02:00
|
|
|
|
2018-09-03 01:22:59 +02:00
|
|
|
return Maybe.empty();
|
|
|
|
});
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
public static boolean isCached(final int serviceId, final String url,
|
|
|
|
final InfoItem.InfoType infoType) {
|
2019-08-07 12:00:47 +02:00
|
|
|
return null != loadFromCache(serviceId, url, infoType).blockingGet();
|
|
|
|
}
|
|
|
|
|
2020-12-20 15:05:37 +01:00
|
|
|
/**
|
|
|
|
* Formats the text contained in the meta info list as HTML and puts it into the text view,
|
|
|
|
* while also making the separator visible. If the list is null or empty, or the user chose not
|
|
|
|
* to see meta information, both the text view and the separator are hidden
|
|
|
|
* @param metaInfos a list of meta information, can be null or empty
|
|
|
|
* @param metaInfoTextView the text view in which to show the formatted HTML
|
|
|
|
* @param metaInfoSeparator another view to be shown or hidden accordingly to the text view
|
2021-01-15 20:57:19 +01:00
|
|
|
* @return a disposable to be stored somewhere and disposed when activity/fragment is destroyed
|
2020-12-20 15:05:37 +01:00
|
|
|
*/
|
2021-01-15 20:57:19 +01:00
|
|
|
public static Disposable showMetaInfoInTextView(@Nullable final List<MetaInfo> metaInfos,
|
|
|
|
final TextView metaInfoTextView,
|
|
|
|
final View metaInfoSeparator) {
|
2020-12-20 15:05:37 +01:00
|
|
|
final Context context = metaInfoTextView.getContext();
|
|
|
|
final boolean showMetaInfo = PreferenceManager.getDefaultSharedPreferences(context)
|
|
|
|
.getBoolean(context.getString(R.string.show_meta_info_key), true);
|
|
|
|
|
|
|
|
if (!showMetaInfo || metaInfos == null || metaInfos.isEmpty()) {
|
|
|
|
metaInfoTextView.setVisibility(View.GONE);
|
|
|
|
metaInfoSeparator.setVisibility(View.GONE);
|
2021-01-15 20:57:19 +01:00
|
|
|
return Disposable.empty();
|
2020-12-20 15:05:37 +01:00
|
|
|
|
|
|
|
} else {
|
|
|
|
final StringBuilder stringBuilder = new StringBuilder();
|
|
|
|
for (final MetaInfo metaInfo : metaInfos) {
|
|
|
|
if (!isNullOrEmpty(metaInfo.getTitle())) {
|
|
|
|
stringBuilder.append("<b>").append(metaInfo.getTitle()).append("</b>")
|
|
|
|
.append(Localization.DOT_SEPARATOR);
|
|
|
|
}
|
|
|
|
|
|
|
|
String content = metaInfo.getContent().getContent().trim();
|
|
|
|
if (content.endsWith(".")) {
|
|
|
|
content = content.substring(0, content.length() - 1); // remove . at end
|
|
|
|
}
|
|
|
|
stringBuilder.append(content);
|
|
|
|
|
|
|
|
for (int i = 0; i < metaInfo.getUrls().size(); i++) {
|
|
|
|
if (i == 0) {
|
|
|
|
stringBuilder.append(Localization.DOT_SEPARATOR);
|
|
|
|
} else {
|
|
|
|
stringBuilder.append("<br/><br/>");
|
|
|
|
}
|
|
|
|
|
|
|
|
stringBuilder
|
|
|
|
.append("<a href=\"").append(metaInfo.getUrls().get(i)).append("\">")
|
|
|
|
.append(capitalizeIfAllUppercase(metaInfo.getUrlTexts().get(i).trim()))
|
|
|
|
.append("</a>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
metaInfoSeparator.setVisibility(View.VISIBLE);
|
2021-01-15 20:57:19 +01:00
|
|
|
return TextLinkifier.createLinksFromHtmlBlock(context, stringBuilder.toString(),
|
|
|
|
metaInfoTextView, HtmlCompat.FROM_HTML_SEPARATOR_LINE_BREAK_HEADING);
|
2020-12-20 15:05:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private static String capitalizeIfAllUppercase(final String text) {
|
|
|
|
for (int i = 0; i < text.length(); i++) {
|
|
|
|
if (Character.isLowerCase(text.charAt(i))) {
|
|
|
|
return text; // there is at least a lowercase letter -> not all uppercase
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (text.isEmpty()) {
|
|
|
|
return text;
|
|
|
|
} else {
|
|
|
|
return text.substring(0, 1).toUpperCase() + text.substring(1).toLowerCase();
|
|
|
|
}
|
|
|
|
}
|
2017-09-03 08:04:18 +02:00
|
|
|
}
|