mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	small fix
This commit is contained in:
		
							parent
							
								
									d4014084cd
								
							
						
					
					
						commit
						f570a60bba
					
				
					 4 changed files with 11 additions and 8 deletions
				
			
		|  | @ -21,6 +21,7 @@ import com.fasterxml.jackson.module.kotlin.readValue | ||||||
| import com.lagradost.cloudstream3.BuildConfig | import com.lagradost.cloudstream3.BuildConfig | ||||||
| import com.lagradost.cloudstream3.MainActivity.Companion.showToast | import com.lagradost.cloudstream3.MainActivity.Companion.showToast | ||||||
| import com.lagradost.cloudstream3.R | import com.lagradost.cloudstream3.R | ||||||
|  | import com.lagradost.cloudstream3.mvvm.logError | ||||||
| import com.lagradost.cloudstream3.mvvm.normalSafeApiCall | import com.lagradost.cloudstream3.mvvm.normalSafeApiCall | ||||||
| import java.io.File | import java.io.File | ||||||
| import kotlin.concurrent.thread | import kotlin.concurrent.thread | ||||||
|  | @ -191,7 +192,7 @@ class InAppUpdater { | ||||||
|                                 } |                                 } | ||||||
|                             } |                             } | ||||||
|                         } catch (e : Exception) { |                         } catch (e : Exception) { | ||||||
|                             e.printStackTrace() |                             logError(e) | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|                 }, IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE) |                 }, IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE) | ||||||
|  | @ -265,7 +266,7 @@ class InAppUpdater { | ||||||
|                             } |                             } | ||||||
|                             builder.show() |                             builder.show() | ||||||
|                         } catch (e: Exception) { |                         } catch (e: Exception) { | ||||||
|                             e.printStackTrace() |                             logError(e) | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|                     return true |                     return true | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| package com.lagradost.cloudstream3.utils | package com.lagradost.cloudstream3.utils | ||||||
| 
 | 
 | ||||||
|  | import com.lagradost.cloudstream3.mvvm.logError | ||||||
| import java.lang.Exception | import java.lang.Exception | ||||||
| import java.lang.StringBuilder | import java.lang.StringBuilder | ||||||
| import java.util.HashMap | import java.util.HashMap | ||||||
|  | @ -71,7 +72,7 @@ class JsUnpacker(packedJS: String?) { | ||||||
|                 return decoded.toString() |                 return decoded.toString() | ||||||
|             } |             } | ||||||
|         } catch (e: Exception) { |         } catch (e: Exception) { | ||||||
|             e.printStackTrace() |             logError(e) | ||||||
|         } |         } | ||||||
|         return null |         return null | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -33,6 +33,7 @@ import androidx.preference.PreferenceManager | ||||||
| import com.bumptech.glide.Glide | import com.bumptech.glide.Glide | ||||||
| import com.bumptech.glide.load.model.GlideUrl | import com.bumptech.glide.load.model.GlideUrl | ||||||
| import com.lagradost.cloudstream3.R | import com.lagradost.cloudstream3.R | ||||||
|  | import com.lagradost.cloudstream3.mvvm.logError | ||||||
| import kotlin.math.roundToInt | import kotlin.math.roundToInt | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -91,7 +92,7 @@ object UIHelper { | ||||||
|                 .load(GlideUrl(url)) |                 .load(GlideUrl(url)) | ||||||
|                 .into(this) |                 .into(this) | ||||||
|         } catch (e : Exception) { |         } catch (e : Exception) { | ||||||
|             e.printStackTrace() |             logError(e) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -186,7 +186,7 @@ object VideoDownloadManager { | ||||||
|         return try { |         return try { | ||||||
|             downloadStatus[id] ?: DownloadType.IsDone |             downloadStatus[id] ?: DownloadType.IsDone | ||||||
|         } catch (e: Exception) { |         } catch (e: Exception) { | ||||||
|             e.printStackTrace() |             logError(e) | ||||||
|             DownloadType.IsDone |             DownloadType.IsDone | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  | @ -661,7 +661,7 @@ object VideoDownloadManager { | ||||||
|                     } |                     } | ||||||
| 
 | 
 | ||||||
|                 } catch (e: IllegalStateException) { |                 } catch (e: IllegalStateException) { | ||||||
|                     e.printStackTrace() |                     logError(e) | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  | @ -889,7 +889,7 @@ object VideoDownloadManager { | ||||||
|                 connection.getHeaderField("content-length").toLongOrNull() ?: connection.contentLength?.toLong() ?: 0L |                 connection.getHeaderField("content-length").toLongOrNull() ?: connection.contentLength?.toLong() ?: 0L | ||||||
|             } |             } | ||||||
|         } catch (e: Exception) { |         } catch (e: Exception) { | ||||||
|             e.printStackTrace() |             logError(e) | ||||||
|             0L |             0L | ||||||
|         } |         } | ||||||
|         val bytesTotal = contentLength + resumeLength |         val bytesTotal = contentLength + resumeLength | ||||||
|  | @ -1017,7 +1017,7 @@ object VideoDownloadManager { | ||||||
|             if (parentId != null) |             if (parentId != null) | ||||||
|                 downloadEvent -= downloadEventListener |                 downloadEvent -= downloadEventListener | ||||||
|         } catch (e: Exception) { |         } catch (e: Exception) { | ||||||
|             e.printStackTrace() |             logError(e) | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         try { |         try { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue