From 4cde97e65d1e079ee899c5ec1fec98890ee1794d Mon Sep 17 00:00:00 2001 From: andoni Date: Thu, 30 Jun 2016 20:14:27 +0200 Subject: [PATCH 1/5] fix build. remove wrong xliff namespaces from spanish translation. --- app/src/main/res/values-es/strings.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index eeacd87ad..15f6c7903 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -1,5 +1,5 @@ - + %1$s visitas Subido el %1$s No se ha encontrado ningún reproductor de vídeo. ¿Desea instalar VLC? @@ -121,10 +121,10 @@ Contenido protegido no soportado en niveles de API inferiores a 18 Este dispositivo no soporta el esquema DRM requerido Ocurrió un error DRM desconocido - Este dispositivo no proporciona un decodificador para %1$s - Este dispositivo no proporciona un decodificador seguro para %1$s + Este dispositivo no proporciona un decodificador para %1$s + Este dispositivo no proporciona un decodificador seguro para %1$s No es posible consultar los decodificadores del dispositivo - No se ha podido instanciar el decodificador %1$s + No se ha podido instanciar el decodificador %1$s El permiso de acceso al almacenamiento fue negado Usar ExoPlayer Experimental From f65c08431c445a4f748e865ce733b9479211a801 Mon Sep 17 00:00:00 2001 From: andoni Date: Thu, 30 Jun 2016 20:21:54 +0200 Subject: [PATCH 2/5] support all variants of vnd.youtube url. --- .../extractor/services/youtube/YoutubeStreamUrlIdHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java index cc95aa401..4cc50d0c4 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java @@ -55,7 +55,7 @@ public class YoutubeStreamUrlIdHandler implements StreamUrlIdHandler { } else if(url.contains("vnd.youtube")) { - id = Parser.matchGroup1("vnd.youtube\\:([\\-a-zA-Z0-9_]{11}).*", url); + id = Parser.matchGroup1("([\\-a-zA-Z0-9_]{11}).*", url); } else { id = Parser.matchGroup1("[?&]v=([\\-a-zA-Z0-9_]{11})", url); From 0b6bae6ce3f604563b218f6647e07fe15dcef570 Mon Sep 17 00:00:00 2001 From: andoni Date: Sun, 3 Jul 2016 16:25:32 +0200 Subject: [PATCH 3/5] change test search term to avoid google ads. --- .../newpipe/extractor/youtube/YoutubeSearchEngineTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java index c7253d238..54e56c6b4 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java +++ b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java @@ -43,7 +43,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase { SearchEngine engine = ServiceList.getService("Youtube") .getSearchEngineInstance(new Downloader()); - result = engine.search("star wars", + result = engine.search("cats", 0, "de", new Downloader()).getSearchResult(); suggestionReply = engine.suggestionList("hello","de",new Downloader()); } From 8644a4542af46bd6fef711f99c595624d748c45e Mon Sep 17 00:00:00 2001 From: Andoni del Olmo Date: Mon, 4 Jul 2016 11:43:18 +0200 Subject: [PATCH 4/5] skip ads and channels from test. --- .../newpipe/extractor/youtube/YoutubeSearchEngineTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java index 54e56c6b4..ed81b92bf 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java +++ b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java @@ -43,7 +43,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase { SearchEngine engine = ServiceList.getService("Youtube") .getSearchEngineInstance(new Downloader()); - result = engine.search("cats", + result = engine.search("boring panda", 0, "de", new Downloader()).getSearchResult(); suggestionReply = engine.suggestionList("hello","de",new Downloader()); } From 3add3d75a1b95208835c71930cb18e5152a953f4 Mon Sep 17 00:00:00 2001 From: Andoni del Olmo Date: Mon, 4 Jul 2016 12:05:43 +0200 Subject: [PATCH 5/5] skip ads and channels from test. --- .../newpipe/extractor/youtube/YoutubeSearchEngineTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java index ed81b92bf..0d053f366 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java +++ b/app/src/androidTest/java/org/schabi/newpipe/extractor/youtube/YoutubeSearchEngineTest.java @@ -43,7 +43,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase { SearchEngine engine = ServiceList.getService("Youtube") .getSearchEngineInstance(new Downloader()); - result = engine.search("boring panda", + result = engine.search("this is something boring", 0, "de", new Downloader()).getSearchResult(); suggestionReply = engine.suggestionList("hello","de",new Downloader()); }