1- package org .schabi .newpipe .extractor .stream ;
2-
3- import org .schabi .newpipe .extractor .InfoItemsCollector ;
4- import org .schabi .newpipe .extractor .exceptions .FoundAdException ;
5- import org .schabi .newpipe .extractor .exceptions .ParsingException ;
6-
7- import java .util .Comparator ;
8-
91/*
102 * Created by Christian Schabesberger on 28.02.16.
113 *
124 * Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org>
13- * StreamInfoItemsCollector.java is part of NewPipe.
5+ * StreamInfoItemsCollector.java is part of NewPipe Extractor .
146 *
15- * NewPipe is free software: you can redistribute it and/or modify
7+ * NewPipe Extractor is free software: you can redistribute it and/or modify
168 * it under the terms of the GNU General Public License as published by
179 * the Free Software Foundation, either version 3 of the License, or
1810 * (at your option) any later version.
1911 *
20- * NewPipe is distributed in the hope that it will be useful,
12+ * NewPipe Extractor is distributed in the hope that it will be useful,
2113 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2214 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2315 * GNU General Public License for more details.
2416 *
2517 * You should have received a copy of the GNU General Public License
26- * along with NewPipe. If not, see <http ://www.gnu.org/licenses/>.
18+ * along with NewPipe Extractor . If not, see <https ://www.gnu.org/licenses/>.
2719 */
2820
21+ package org .schabi .newpipe .extractor .stream ;
22+
23+ import org .schabi .newpipe .extractor .InfoItemsCollector ;
24+ import org .schabi .newpipe .extractor .exceptions .FoundAdException ;
25+ import org .schabi .newpipe .extractor .exceptions .ParsingException ;
26+
27+ import java .util .Comparator ;
28+
2929public class StreamInfoItemsCollector
3030 extends InfoItemsCollector <StreamInfoItem , StreamInfoItemExtractor > {
3131
@@ -74,7 +74,7 @@ public StreamInfoItem extract(final StreamInfoItemExtractor extractor) throws Pa
7474 addError (e );
7575 }
7676 try {
77- resultItem .setThumbnailUrl (extractor .getThumbnailUrl ());
77+ resultItem .setThumbnails (extractor .getThumbnails ());
7878 } catch (final Exception e ) {
7979 addError (e );
8080 }
@@ -84,7 +84,7 @@ public StreamInfoItem extract(final StreamInfoItemExtractor extractor) throws Pa
8484 addError (e );
8585 }
8686 try {
87- resultItem .setUploaderAvatarUrl (extractor .getUploaderAvatarUrl ());
87+ resultItem .setUploaderAvatars (extractor .getUploaderAvatars ());
8888 } catch (final Exception e ) {
8989 addError (e );
9090 }
@@ -111,8 +111,7 @@ public StreamInfoItem extract(final StreamInfoItemExtractor extractor) throws Pa
111111 public void commit (final StreamInfoItemExtractor extractor ) {
112112 try {
113113 addItem (extract (extractor ));
114- } catch (final FoundAdException ae ) {
115- //System.out.println("AD_WARNING: " + ae.getMessage());
114+ } catch (final FoundAdException ignored ) {
116115 } catch (final Exception e ) {
117116 addError (e );
118117 }
0 commit comments