implemented optimised version of YoutubeExtractor.getVideoId().
new version uses a regular expression instead of creating a HashMap and looping over them. Needs testing before pushing to origin
This commit is contained in:
parent
873564f2aa
commit
3411b53450
3 changed files with 23 additions and 4 deletions
|
|
@ -67,8 +67,7 @@ public class VideoItemDetailActivity extends AppCompatActivity {
|
|||
arguments.putInt(VideoItemDetailFragment.STREAMING_SERVICE, i);
|
||||
try {
|
||||
currentStreamingService = i;
|
||||
extractor = ServiceList.getService(i)
|
||||
.getExtractorInstance();
|
||||
extractor = ServiceList.getService(i).getExtractorInstance();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue